OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_APITEST_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 // All extensions tested by ExtensionApiTest are in the "api_test" dir. | 112 // All extensions tested by ExtensionApiTest are in the "api_test" dir. |
113 virtual void SetUpCommandLine(CommandLine* command_line); | 113 virtual void SetUpCommandLine(CommandLine* command_line); |
114 | 114 |
115 // If it failed, what was the error message? | 115 // If it failed, what was the error message? |
116 std::string message_; | 116 std::string message_; |
117 | 117 |
118 private: | 118 private: |
119 bool RunExtensionTestImpl(const char* extension_name, | 119 bool RunExtensionTestImpl(const char* extension_name, |
120 const std::string& test_page, | 120 const std::string& test_page, |
121 bool enable_incogntio, | 121 bool enable_incognito, |
122 bool enable_fileaccess, | 122 bool enable_fileaccess, |
123 bool load_as_component); | 123 bool load_as_component); |
124 | 124 |
125 // Hold details of the test, set in C++, which can be accessed by | 125 // Hold details of the test, set in C++, which can be accessed by |
126 // javascript using chrome.test.getConfig(). | 126 // javascript using chrome.test.getConfig(). |
127 scoped_ptr<DictionaryValue> test_config_; | 127 scoped_ptr<DictionaryValue> test_config_; |
128 }; | 128 }; |
129 | 129 |
130 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ | 130 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ |
OLD | NEW |