| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 } | 99 } |
| 100 | 100 |
| 101 IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateApiTest, | 101 IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateApiTest, |
| 102 IncorrectManifest2) { | 102 IncorrectManifest2) { |
| 103 ui_test_utils::WindowedNotificationObserver observer( | 103 ui_test_utils::WindowedNotificationObserver observer( |
| 104 chrome::NOTIFICATION_EXTENSION_INSTALL_ERROR, | 104 chrome::NOTIFICATION_EXTENSION_INSTALL_ERROR, |
| 105 NotificationService::AllSources()); | 105 NotificationService::AllSources()); |
| 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 |
| 110 // Tests that we can request an app installed bubble (instead of the default |
| 111 // UI when an app is installed). |
| 112 IN_PROC_BROWSER_TEST_F(ExtensionWebstorePrivateApiTest, |
| 113 AppInstallBubble) { |
| 114 ASSERT_TRUE(RunInstallTest("app_install_bubble.html", "app.crx")); |
| 115 } |
| OLD | NEW |