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 #include "chrome/browser/extensions/extension_apitest.h" | 5 #include "chrome/browser/extensions/extension_apitest.h" |
6 | 6 |
7 #include "base/strings/string_split.h" | 7 #include "base/strings/string_split.h" |
8 #include "base/strings/string_util.h" | 8 #include "base/strings/string_util.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "chrome/browser/extensions/extension_service.h" | 10 #include "chrome/browser/extensions/extension_service.h" |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 return RunExtensionTestImpl(extension_name, std::string(), NULL, kFlagNone); | 198 return RunExtensionTestImpl(extension_name, std::string(), NULL, kFlagNone); |
199 } | 199 } |
200 | 200 |
201 bool ExtensionApiTest::RunExtensionTestIncognitoNoFileAccess( | 201 bool ExtensionApiTest::RunExtensionTestIncognitoNoFileAccess( |
202 const std::string& extension_name) { | 202 const std::string& extension_name) { |
203 return RunExtensionTestImpl( | 203 return RunExtensionTestImpl( |
204 extension_name, std::string(), NULL, kFlagEnableIncognito); | 204 extension_name, std::string(), NULL, kFlagEnableIncognito); |
205 } | 205 } |
206 | 206 |
207 bool ExtensionApiTest::ExtensionSubtestsAreSkipped() { | 207 bool ExtensionApiTest::ExtensionSubtestsAreSkipped() { |
208 // See http://crbug.com/177163 for details. | |
209 #if defined(OS_WIN) && !defined(NDEBUG) | |
210 LOG(WARNING) << "Workaround for 177163, prematurely returning"; | |
211 return true; | |
212 #else | |
213 return false; | 208 return false; |
214 #endif | |
215 } | 209 } |
216 | 210 |
217 bool ExtensionApiTest::RunExtensionSubtest(const std::string& extension_name, | 211 bool ExtensionApiTest::RunExtensionSubtest(const std::string& extension_name, |
218 const std::string& page_url) { | 212 const std::string& page_url) { |
219 return RunExtensionSubtest(extension_name, page_url, kFlagEnableFileAccess); | 213 return RunExtensionSubtest(extension_name, page_url, kFlagEnableFileAccess); |
220 } | 214 } |
221 | 215 |
222 bool ExtensionApiTest::RunExtensionSubtest(const std::string& extension_name, | 216 bool ExtensionApiTest::RunExtensionSubtest(const std::string& extension_name, |
223 const std::string& page_url, | 217 const std::string& page_url, |
224 int flags) { | 218 int flags) { |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 test_config_->SetInteger(kSpawnedTestServerPort, | 409 test_config_->SetInteger(kSpawnedTestServerPort, |
416 test_server()->host_port_pair().port()); | 410 test_server()->host_port_pair().port()); |
417 | 411 |
418 return true; | 412 return true; |
419 } | 413 } |
420 | 414 |
421 void ExtensionApiTest::SetUpCommandLine(base::CommandLine* command_line) { | 415 void ExtensionApiTest::SetUpCommandLine(base::CommandLine* command_line) { |
422 ExtensionBrowserTest::SetUpCommandLine(command_line); | 416 ExtensionBrowserTest::SetUpCommandLine(command_line); |
423 test_data_dir_ = test_data_dir_.AppendASCII("api_test"); | 417 test_data_dir_ = test_data_dir_.AppendASCII("api_test"); |
424 } | 418 } |
OLD | NEW |