| 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. | 10 // Function names. |
| 11 namespace extension_test_api_functions { | 11 namespace extension_test_api_functions { |
| 12 extern const char kPassFunction[]; | 12 extern const char kPassFunction[]; |
| 13 extern const char kFailFunction[]; | 13 extern const char kFailFunction[]; |
| 14 extern const char kLogFunction[]; |
| 14 }; // namespace extension_test_api_functions | 15 }; // namespace extension_test_api_functions |
| 15 | 16 |
| 16 class ExtensionTestPassFunction : public SyncExtensionFunction { | 17 class ExtensionTestPassFunction : public SyncExtensionFunction { |
| 17 virtual bool RunImpl(); | 18 virtual bool RunImpl(); |
| 18 }; | 19 }; |
| 19 | 20 |
| 20 class ExtensionTestFailFunction : public SyncExtensionFunction { | 21 class ExtensionTestFailFunction : public SyncExtensionFunction { |
| 21 virtual bool RunImpl(); | 22 virtual bool RunImpl(); |
| 22 }; | 23 }; |
| 23 | 24 |
| 25 class ExtensionTestLogFunction : public SyncExtensionFunction { |
| 26 virtual bool RunImpl(); |
| 27 }; |
| 28 |
| 24 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TEST_API_H_ | 29 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TEST_API_H_ |
| 30 |
| OLD | NEW |