OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/command_line.h" | 5 #include "base/command_line.h" |
6 #include "chrome/browser/extensions/extension_install_prompt.h" | 6 #include "chrome/browser/extensions/extension_install_prompt.h" |
7 #include "chrome/browser/extensions/extension_service.h" | 7 #include "chrome/browser/extensions/extension_service.h" |
8 #include "chrome/browser/extensions/extension_system.h" | |
9 #include "chrome/browser/extensions/tab_helper.h" | 8 #include "chrome/browser/extensions/tab_helper.h" |
10 #include "chrome/browser/extensions/webstore_inline_installer.h" | 9 #include "chrome/browser/extensions/webstore_inline_installer.h" |
11 #include "chrome/browser/extensions/webstore_inline_installer_factory.h" | 10 #include "chrome/browser/extensions/webstore_inline_installer_factory.h" |
12 #include "chrome/browser/extensions/webstore_installer_test.h" | 11 #include "chrome/browser/extensions/webstore_installer_test.h" |
13 #include "chrome/browser/extensions/webstore_standalone_installer.h" | 12 #include "chrome/browser/extensions/webstore_standalone_installer.h" |
| 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
16 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
17 #include "chrome/test/base/ui_test_utils.h" | 17 #include "chrome/test/base/ui_test_utils.h" |
18 #include "content/public/browser/web_contents.h" | 18 #include "content/public/browser/web_contents.h" |
| 19 #include "extensions/browser/extension_system.h" |
19 #include "url/gurl.h" | 20 #include "url/gurl.h" |
20 | 21 |
21 using content::WebContents; | 22 using content::WebContents; |
22 | 23 |
23 namespace extensions { | 24 namespace extensions { |
24 | 25 |
25 namespace { | 26 namespace { |
26 | 27 |
27 const char kWebstoreDomain[] = "cws.com"; | 28 const char kWebstoreDomain[] = "cws.com"; |
28 const char kAppDomain[] = "app.com"; | 29 const char kAppDomain[] = "app.com"; |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 161 |
161 // Revisit the inline install site and reinstall the extension. It should | 162 // Revisit the inline install site and reinstall the extension. It should |
162 // simply be re-enabled, rather than try to install again. | 163 // simply be re-enabled, rather than try to install again. |
163 ui_test_utils::NavigateToURL( | 164 ui_test_utils::NavigateToURL( |
164 browser(), GenerateTestServerUrl(kAppDomain, "install.html")); | 165 browser(), GenerateTestServerUrl(kAppDomain, "install.html")); |
165 RunTest("runTest"); | 166 RunTest("runTest"); |
166 ASSERT_TRUE(extension_service->IsExtensionEnabled(kTestExtensionId)); | 167 ASSERT_TRUE(extension_service->IsExtensionEnabled(kTestExtensionId)); |
167 } | 168 } |
168 | 169 |
169 } // namespace extensions | 170 } // namespace extensions |
OLD | NEW |