LCOV - code coverage report
Current view: top level - toolkit/components/filewatcher - NativeFileWatcherNotSupported.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 11 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 8 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* This Source Code Form is subject to the terms of the Mozilla Public
       2             :  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
       3             :  * You can obtain one at http://mozilla.org/MPL/2.0/. */
       4             : 
       5             : #ifndef mozilla_nativefilewatcher_h__
       6             : #define mozilla_nativefilewatcher_h__
       7             : 
       8             : #include "nsINativeFileWatcher.h"
       9             : 
      10             : namespace mozilla {
      11             : 
      12             : class NativeFileWatcherService final : public nsINativeFileWatcherService
      13             : {
      14             : public:
      15             :   NS_DECL_ISUPPORTS
      16             : 
      17           0 :   NativeFileWatcherService()
      18           0 :   {
      19           0 :   };
      20             : 
      21           0 :   nsresult Init()
      22             :   {
      23           0 :     return NS_OK;
      24             :   };
      25             : 
      26           0 :   NS_IMETHOD AddPath(const nsAString& aPathToWatch,
      27             :                      nsINativeFileWatcherCallback* aOnChange,
      28             :                      nsINativeFileWatcherErrorCallback* aOnError,
      29             :                      nsINativeFileWatcherSuccessCallback* aOnSuccess) override
      30             :   {
      31           0 :     return NS_ERROR_NOT_IMPLEMENTED;
      32             :   };
      33             : 
      34           0 :   NS_IMETHOD RemovePath(const nsAString& aPathToRemove,
      35             :                         nsINativeFileWatcherCallback* aOnChange,
      36             :                         nsINativeFileWatcherErrorCallback* aOnError,
      37             :                         nsINativeFileWatcherSuccessCallback* aOnSuccess) override
      38             :   {
      39           0 :     return NS_ERROR_NOT_IMPLEMENTED;
      40             :   };
      41             : 
      42             : private:
      43           0 :   ~NativeFileWatcherService() { };
      44             :   NativeFileWatcherService(const NativeFileWatcherService& other) = delete;
      45             :   void operator=(const NativeFileWatcherService& other) = delete;
      46             : };
      47             : 
      48           0 : NS_IMPL_ISUPPORTS(NativeFileWatcherService, nsINativeFileWatcherService);
      49             : 
      50             : } // namespace mozilla
      51             : 
      52             : #endif // mozilla_nativefilewatcher_h__

Generated by: LCOV version 1.13