OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/stringprintf.h" | 5 #include "base/stringprintf.h" |
6 #include "chrome/browser/extensions/extension_apitest.h" | 6 #include "chrome/browser/extensions/extension_apitest.h" |
7 #include "chrome/browser/extensions/extension_install_ui.h" | 7 #include "chrome/browser/extensions/extension_install_ui.h" |
8 #include "chrome/browser/extensions/extension_service.h" | 8 #include "chrome/browser/extensions/extension_service.h" |
9 #include "chrome/browser/extensions/extension_webstore_private_api.h" | 9 #include "chrome/browser/extensions/extension_webstore_private_api.h" |
10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 ASSERT_TRUE(RunInstallTest("incorrect_manifest2.html", "extension.crx")); | 106 ASSERT_TRUE(RunInstallTest("incorrect_manifest2.html", "extension.crx")); |
107 observer.Wait(); | 107 observer.Wait(); |
108 } | 108 } |
109 | 109 |
110 // Tests that we can request an app installed bubble (instead of the default | 110 // Tests that we can request an app installed bubble (instead of the default |
111 // UI when an app is installed). | 111 // UI when an app is installed). |
112 IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateApiTest, | 112 IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateApiTest, |
113 AppInstallBubble) { | 113 AppInstallBubble) { |
114 ASSERT_TRUE(RunInstallTest("app_install_bubble.html", "app.crx")); | 114 ASSERT_TRUE(RunInstallTest("app_install_bubble.html", "app.crx")); |
115 } | 115 } |
| 116 |
| 117 // Tests using the iconUrl parameter to the install function. |
| 118 IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateApiTest, |
| 119 IconUrl) { |
| 120 ASSERT_TRUE(RunInstallTest("icon_url.html", "extension.crx")); |
| 121 } |
OLD | NEW |