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

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

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 #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/chrome_notification_types.h" 10 #include "chrome/browser/chrome_notification_types.h"
11 #include "chrome/browser/extensions/api/test/test_api.h" 11 #include "chrome/browser/extensions/api/test/test_api.h"
12 #include "chrome/browser/extensions/extension_service.h" 12 #include "chrome/browser/extensions/extension_service.h"
13 #include "chrome/browser/extensions/extension_system.h" 13 #include "chrome/browser/extensions/extension_system.h"
14 #include "chrome/browser/extensions/unpacked_installer.h" 14 #include "chrome/browser/extensions/unpacked_installer.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/extensions/application_launch.h" 17 #include "chrome/browser/ui/extensions/application_launch.h"
18 #include "chrome/common/extensions/extension.h"
19 #include "chrome/test/base/ui_test_utils.h" 18 #include "chrome/test/base/ui_test_utils.h"
20 #include "content/public/browser/notification_registrar.h" 19 #include "content/public/browser/notification_registrar.h"
21 #include "content/public/browser/notification_service.h" 20 #include "content/public/browser/notification_service.h"
21 #include "extensions/common/extension.h"
22 #include "net/base/escape.h" 22 #include "net/base/escape.h"
23 #include "net/base/net_util.h" 23 #include "net/base/net_util.h"
24 #include "net/test/embedded_test_server/embedded_test_server.h" 24 #include "net/test/embedded_test_server/embedded_test_server.h"
25 #include "net/test/embedded_test_server/http_request.h"
25 #include "net/test/embedded_test_server/http_response.h" 26 #include "net/test/embedded_test_server/http_response.h"
26 #include "net/test/embedded_test_server/http_request.h"
27 #include "net/test/spawned_test_server/spawned_test_server.h" 27 #include "net/test/spawned_test_server/spawned_test_server.h"
28 28
29 namespace { 29 namespace {
30 30
31 const char kTestCustomArg[] = "customArg"; 31 const char kTestCustomArg[] = "customArg";
32 const char kTestServerPort[] = "testServer.port"; 32 const char kTestServerPort[] = "testServer.port";
33 const char kTestDataDirectory[] = "testDataDirectory"; 33 const char kTestDataDirectory[] = "testDataDirectory";
34 const char kTestWebSocketPort[] = "testWebSocketPort"; 34 const char kTestWebSocketPort[] = "testWebSocketPort";
35 const char kSpawnedTestServerPort[] = "spawnedTestServer.port"; 35 const char kSpawnedTestServerPort[] = "spawnedTestServer.port";
36 36
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 test_config_->SetInteger(kSpawnedTestServerPort, 449 test_config_->SetInteger(kSpawnedTestServerPort,
450 test_server()->host_port_pair().port()); 450 test_server()->host_port_pair().port());
451 451
452 return true; 452 return true;
453 } 453 }
454 454
455 void ExtensionApiTest::SetUpCommandLine(CommandLine* command_line) { 455 void ExtensionApiTest::SetUpCommandLine(CommandLine* command_line) {
456 ExtensionBrowserTest::SetUpCommandLine(command_line); 456 ExtensionBrowserTest::SetUpCommandLine(command_line);
457 test_data_dir_ = test_data_dir_.AppendASCII("api_test"); 457 test_data_dir_ = test_data_dir_.AppendASCII("api_test");
458 } 458 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_action_manager.cc ('k') | chrome/browser/extensions/extension_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698