Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(837)

Side by Side Diff: chrome/browser/extensions/extension_apitest.h

Issue 9834022: Expand usage of platform-apps flag and permission features. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved switch check to Extension::Create(). Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 int flags); 159 int flags);
160 160
161 // Hold details of the test, set in C++, which can be accessed by 161 // Hold details of the test, set in C++, which can be accessed by
162 // javascript using chrome.test.getConfig(). 162 // javascript using chrome.test.getConfig().
163 scoped_ptr<DictionaryValue> test_config_; 163 scoped_ptr<DictionaryValue> test_config_;
164 164
165 // Hold the test WebSocket server. 165 // Hold the test WebSocket server.
166 scoped_ptr<ui_test_utils::TestWebSocketServer> websocket_server_; 166 scoped_ptr<ui_test_utils::TestWebSocketServer> websocket_server_;
167 }; 167 };
168 168
169 // PlatformAppApiTest sets up the command-line flags necessary for platform
170 // apps (if any), and provides a convenience method for confirming that your
171 // API requires those flags.
172 class PlatformAppApiTest : public ExtensionApiTest {
173 public:
174 PlatformAppApiTest();
175 virtual ~PlatformAppApiTest();
176
177 virtual void SetUpCommandLine(CommandLine* command_line);
Mihai Parparita -not on Chrome 2012/03/22 19:52:34 Add OVERRIDE
178 void VerifyPermissions(const FilePath& extension_path);
Mihai Parparita -not on Chrome 2012/03/22 19:52:34 Nit: this should be protected?
179
180 private:
181 CommandLine previous_command_line_;
182 };
183
169 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ 184 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698