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_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 #pragma once | |
8 | 7 |
9 #include "base/values.h" | 8 #include "base/values.h" |
10 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
11 | 10 |
12 template <typename T> struct DefaultSingletonTraits; | 11 template <typename T> struct DefaultSingletonTraits; |
13 | 12 |
14 // A function that is only available in tests. | 13 // A function that is only available in tests. |
15 // Prior to running, checks that we are in an extension process. | 14 // Prior to running, checks that we are in an extension process. |
16 class TestExtensionFunction : public SyncExtensionFunction { | 15 class TestExtensionFunction : public SyncExtensionFunction { |
17 protected: | 16 protected: |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 DISALLOW_COPY_AND_ASSIGN(TestConfigState); | 124 DISALLOW_COPY_AND_ASSIGN(TestConfigState); |
126 }; | 125 }; |
127 | 126 |
128 virtual ~ExtensionTestGetConfigFunction(); | 127 virtual ~ExtensionTestGetConfigFunction(); |
129 | 128 |
130 // ExtensionFunction: | 129 // ExtensionFunction: |
131 virtual bool RunImpl() OVERRIDE; | 130 virtual bool RunImpl() OVERRIDE; |
132 }; | 131 }; |
133 | 132 |
134 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TEST_API_H_ | 133 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_TEST_API_H_ |
OLD | NEW |