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

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

Issue 9837045: Expand usage of platform-apps flag and permission features. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 int flags); 161 int flags);
162 162
163 // Hold details of the test, set in C++, which can be accessed by 163 // Hold details of the test, set in C++, which can be accessed by
164 // javascript using chrome.test.getConfig(). 164 // javascript using chrome.test.getConfig().
165 scoped_ptr<DictionaryValue> test_config_; 165 scoped_ptr<DictionaryValue> test_config_;
166 166
167 // Hold the test WebSocket server. 167 // Hold the test WebSocket server.
168 scoped_ptr<ui_test_utils::TestWebSocketServer> websocket_server_; 168 scoped_ptr<ui_test_utils::TestWebSocketServer> websocket_server_;
169 }; 169 };
170 170
171 // PlatformAppApiTest sets up the command-line flags necessary for platform
172 // apps (if any), and provides a convenience method for confirming that your
173 // API requires those flags.
174 class PlatformAppApiTest : public ExtensionApiTest {
175 public:
176 PlatformAppApiTest();
177 virtual ~PlatformAppApiTest();
178
179 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE;
180
181 protected:
182 void VerifyPermissions(const FilePath& extension_path);
183
184 private:
185 CommandLine previous_command_line_;
186 };
187
171 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ 188 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/socket/socket_apitest.cc ('k') | chrome/browser/extensions/extension_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698