| 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 <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "content/public/browser/notification_details.h" | 27 #include "content/public/browser/notification_details.h" |
| 28 #include "content/public/browser/notification_service.h" | 28 #include "content/public/browser/notification_service.h" |
| 29 #include "content/public/browser/web_contents.h" | 29 #include "content/public/browser/web_contents.h" |
| 30 #include "content/public/common/content_switches.h" | 30 #include "content/public/common/content_switches.h" |
| 31 #include "content/public/test/browser_test_utils.h" | 31 #include "content/public/test/browser_test_utils.h" |
| 32 #include "extensions/browser/extension_registry.h" | 32 #include "extensions/browser/extension_registry.h" |
| 33 #include "extensions/browser/extension_system.h" | 33 #include "extensions/browser/extension_system.h" |
| 34 #include "extensions/common/extension.h" | 34 #include "extensions/common/extension.h" |
| 35 #include "extensions/common/extension_set.h" | 35 #include "extensions/common/extension_set.h" |
| 36 #include "extensions/common/feature_switch.h" | 36 #include "extensions/common/feature_switch.h" |
| 37 #include "net/base/filename_util.h" | 37 #include "net/base/net_util.h" |
| 38 | 38 |
| 39 using extensions::FeatureSwitch; | 39 using extensions::FeatureSwitch; |
| 40 | 40 |
| 41 // This file contains high-level startup tests for the extensions system. We've | 41 // This file contains high-level startup tests for the extensions system. We've |
| 42 // had many silly bugs where command line flags did not get propagated correctly | 42 // had many silly bugs where command line flags did not get propagated correctly |
| 43 // into the services, so we didn't start correctly. | 43 // into the services, so we didn't start correctly. |
| 44 | 44 |
| 45 class ExtensionStartupTestBase : public InProcessBrowserTest { | 45 class ExtensionStartupTestBase : public InProcessBrowserTest { |
| 46 public: | 46 public: |
| 47 ExtensionStartupTestBase() : unauthenticated_load_allowed_(true) { | 47 ExtensionStartupTestBase() : unauthenticated_load_allowed_(true) { |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 .AppendASCII("extensions") | 293 .AppendASCII("extensions") |
| 294 .AppendASCII("app2"); | 294 .AppendASCII("app2"); |
| 295 load_extensions_.push_back(fourth_extension_path.value()); | 295 load_extensions_.push_back(fourth_extension_path.value()); |
| 296 } | 296 } |
| 297 }; | 297 }; |
| 298 | 298 |
| 299 IN_PROC_BROWSER_TEST_F(ExtensionsLoadMultipleTest, Test) { | 299 IN_PROC_BROWSER_TEST_F(ExtensionsLoadMultipleTest, Test) { |
| 300 WaitForServicesToStart(4, true); | 300 WaitForServicesToStart(4, true); |
| 301 TestInjection(true, true); | 301 TestInjection(true, true); |
| 302 } | 302 } |
| OLD | NEW |