| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TEST_TEST_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TEST_TEST_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_TEST_TEST_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TEST_TEST_API_H_ |
| 7 | 7 |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public: | 26 public: |
| 27 DECLARE_EXTENSION_FUNCTION("test.notifyPass", UNKNOWN) | 27 DECLARE_EXTENSION_FUNCTION("test.notifyPass", UNKNOWN) |
| 28 | 28 |
| 29 protected: | 29 protected: |
| 30 virtual ~TestNotifyPassFunction(); | 30 virtual ~TestNotifyPassFunction(); |
| 31 | 31 |
| 32 // ExtensionFunction: | 32 // ExtensionFunction: |
| 33 virtual bool RunImpl() OVERRIDE; | 33 virtual bool RunImpl() OVERRIDE; |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 class TestFailFunction : public TestExtensionFunction { | 36 class TestNotifyFailFunction : public TestExtensionFunction { |
| 37 public: | 37 public: |
| 38 DECLARE_EXTENSION_FUNCTION("test.notifyFail", UNKNOWN) | 38 DECLARE_EXTENSION_FUNCTION("test.notifyFail", UNKNOWN) |
| 39 | 39 |
| 40 protected: | 40 protected: |
| 41 virtual ~TestFailFunction(); | 41 virtual ~TestNotifyFailFunction(); |
| 42 | 42 |
| 43 // ExtensionFunction: | 43 // ExtensionFunction: |
| 44 virtual bool RunImpl() OVERRIDE; | 44 virtual bool RunImpl() OVERRIDE; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 class TestLogFunction : public TestExtensionFunction { | 47 class TestLogFunction : public TestExtensionFunction { |
| 48 public: | 48 public: |
| 49 DECLARE_EXTENSION_FUNCTION("test.log", UNKNOWN) | 49 DECLARE_EXTENSION_FUNCTION("test.log", UNKNOWN) |
| 50 | 50 |
| 51 protected: | 51 protected: |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 virtual ~TestGetConfigFunction(); | 129 virtual ~TestGetConfigFunction(); |
| 130 | 130 |
| 131 // ExtensionFunction: | 131 // ExtensionFunction: |
| 132 virtual bool RunImpl() OVERRIDE; | 132 virtual bool RunImpl() OVERRIDE; |
| 133 }; | 133 }; |
| 134 | 134 |
| 135 } // namespace extensions | 135 } // namespace extensions |
| 136 | 136 |
| 137 #endif // CHROME_BROWSER_EXTENSIONS_API_TEST_TEST_API_H_ | 137 #endif // CHROME_BROWSER_EXTENSIONS_API_TEST_TEST_API_H_ |
| OLD | NEW |