| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_EXTENSION_TEST_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_TEST_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TEST_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_TEST_API_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/extensions/extension_function.h" | 8 #include "chrome/browser/extensions/extension_function.h" |
| 9 | 9 |
| 10 // Function names. | |
| 11 namespace extension_test_api_functions { | |
| 12 extern const char kPassFunction[]; | |
| 13 extern const char kFailFunction[]; | |
| 14 extern const char kLogFunction[]; | |
| 15 }; // namespace extension_test_api_functions | |
| 16 | |
| 17 class ExtensionTestPassFunction : public SyncExtensionFunction { | 10 class ExtensionTestPassFunction : public SyncExtensionFunction { |
| 18 virtual bool RunImpl(); | 11 virtual bool RunImpl(); |
| 12 DECLARE_EXTENSION_FUNCTION_NAME("test.notifyPass") |
| 19 }; | 13 }; |
| 20 | 14 |
| 21 class ExtensionTestFailFunction : public SyncExtensionFunction { | 15 class ExtensionTestFailFunction : public SyncExtensionFunction { |
| 22 virtual bool RunImpl(); | 16 virtual bool RunImpl(); |
| 17 DECLARE_EXTENSION_FUNCTION_NAME("test.notifyFail") |
| 23 }; | 18 }; |
| 24 | 19 |
| 25 class ExtensionTestLogFunction : public SyncExtensionFunction { | 20 class ExtensionTestLogFunction : public SyncExtensionFunction { |
| 26 virtual bool RunImpl(); | 21 virtual bool RunImpl(); |
| 22 DECLARE_EXTENSION_FUNCTION_NAME("test.log") |
| 27 }; | 23 }; |
| 28 | 24 |
| 29 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TEST_API_H_ | 25 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TEST_API_H_ |
| 30 | 26 |
| OLD | NEW |