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

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

Issue 1843943003: Extension-created windows should share the creator's BrowingInstance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments Created 4 years, 8 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
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 7
8 #include <deque> 8 #include <deque>
9 #include <string> 9 #include <string>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 protected: 66 protected:
67 // InProcessBrowserTest: 67 // InProcessBrowserTest:
68 void SetUpInProcessBrowserTestFixture() override; 68 void SetUpInProcessBrowserTestFixture() override;
69 void TearDownInProcessBrowserTestFixture() override; 69 void TearDownInProcessBrowserTestFixture() override;
70 70
71 // Load |extension_name| and wait for pass / fail notification. 71 // Load |extension_name| and wait for pass / fail notification.
72 // |extension_name| is a directory in "test/data/extensions/api_test". 72 // |extension_name| is a directory in "test/data/extensions/api_test".
73 bool RunExtensionTest(const std::string& extension_name); 73 bool RunExtensionTest(const std::string& extension_name);
74 74
75 // Similar to RunExtensionTest, except sets an additional string argument
76 // |customArg| to the test config object.
77 bool RunExtensionTestWithArg(const std::string& extension_name,
78 const char* custom_arg);
79
75 // Same as RunExtensionTest, but enables the extension for incognito mode. 80 // Same as RunExtensionTest, but enables the extension for incognito mode.
76 bool RunExtensionTestIncognito(const std::string& extension_name); 81 bool RunExtensionTestIncognito(const std::string& extension_name);
77 82
78 // Same as RunExtensionTest, but ignores any warnings in the manifest. 83 // Same as RunExtensionTest, but ignores any warnings in the manifest.
79 bool RunExtensionTestIgnoreManifestWarnings( 84 bool RunExtensionTestIgnoreManifestWarnings(
80 const std::string& extension_name); 85 const std::string& extension_name);
81 86
82 // Same as RunExtensionTest, allow old manifest ersions. 87 // Same as RunExtensionTest, allow old manifest ersions.
83 bool RunExtensionTestAllowOldManifestVersion( 88 bool RunExtensionTestAllowOldManifestVersion(
84 const std::string& extension_name); 89 const std::string& extension_name);
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 scoped_ptr<base::DictionaryValue> test_config_; 174 scoped_ptr<base::DictionaryValue> test_config_;
170 175
171 // Hold the test WebSocket server. 176 // Hold the test WebSocket server.
172 scoped_ptr<net::SpawnedTestServer> websocket_server_; 177 scoped_ptr<net::SpawnedTestServer> websocket_server_;
173 178
174 // Hold the test FTP server. 179 // Hold the test FTP server.
175 scoped_ptr<net::SpawnedTestServer> ftp_server_; 180 scoped_ptr<net::SpawnedTestServer> ftp_server_;
176 }; 181 };
177 182
178 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_ 183 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_APITEST_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs_test.cc ('k') | chrome/browser/extensions/extension_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698