| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 bool ExtensionApiTest::RunExtensionTestAllowOldManifestVersion( | 179 bool ExtensionApiTest::RunExtensionTestAllowOldManifestVersion( |
| 180 const std::string& extension_name) { | 180 const std::string& extension_name) { |
| 181 return RunExtensionTestImpl( | 181 return RunExtensionTestImpl( |
| 182 extension_name, | 182 extension_name, |
| 183 std::string(), | 183 std::string(), |
| 184 NULL, | 184 NULL, |
| 185 kFlagEnableFileAccess | kFlagAllowOldManifestVersions); | 185 kFlagEnableFileAccess | kFlagAllowOldManifestVersions); |
| 186 } | 186 } |
| 187 | 187 |
| 188 bool ExtensionApiTest::RunExtensionTestWithArg( |
| 189 const std::string& extension_name, |
| 190 const char* custom_arg) { |
| 191 return RunExtensionTestImpl(extension_name, std::string(), custom_arg, |
| 192 kFlagEnableFileAccess); |
| 193 } |
| 194 |
| 188 bool ExtensionApiTest::RunComponentExtensionTest( | 195 bool ExtensionApiTest::RunComponentExtensionTest( |
| 189 const std::string& extension_name) { | 196 const std::string& extension_name) { |
| 190 return RunExtensionTestImpl(extension_name, | 197 return RunExtensionTestImpl(extension_name, |
| 191 std::string(), | 198 std::string(), |
| 192 NULL, | 199 NULL, |
| 193 kFlagEnableFileAccess | kFlagLoadAsComponent); | 200 kFlagEnableFileAccess | kFlagLoadAsComponent); |
| 194 } | 201 } |
| 195 | 202 |
| 196 bool ExtensionApiTest::RunExtensionTestNoFileAccess( | 203 bool ExtensionApiTest::RunExtensionTestNoFileAccess( |
| 197 const std::string& extension_name) { | 204 const std::string& extension_name) { |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 410 test_config_->SetInteger(kSpawnedTestServerPort, | 417 test_config_->SetInteger(kSpawnedTestServerPort, |
| 411 test_server()->host_port_pair().port()); | 418 test_server()->host_port_pair().port()); |
| 412 | 419 |
| 413 return true; | 420 return true; |
| 414 } | 421 } |
| 415 | 422 |
| 416 void ExtensionApiTest::SetUpCommandLine(base::CommandLine* command_line) { | 423 void ExtensionApiTest::SetUpCommandLine(base::CommandLine* command_line) { |
| 417 ExtensionBrowserTest::SetUpCommandLine(command_line); | 424 ExtensionBrowserTest::SetUpCommandLine(command_line); |
| 418 test_data_dir_ = test_data_dir_.AppendASCII("api_test"); | 425 test_data_dir_ = test_data_dir_.AppendASCII("api_test"); |
| 419 } | 426 } |
| OLD | NEW |