| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/views/extensions/extension_install_dialog_view.h" | 5 #include "chrome/browser/ui/views/extensions/extension_install_dialog_view.h" |
| 6 | 6 |
| 7 #include "base/macros.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/extensions/extension_browsertest.h" | 9 #include "chrome/browser/extensions/extension_browsertest.h" |
| 9 #include "chrome/browser/extensions/extension_icon_manager.h" | 10 #include "chrome/browser/extensions/extension_icon_manager.h" |
| 10 #include "chrome/browser/extensions/extension_install_prompt.h" | 11 #include "chrome/browser/extensions/extension_install_prompt.h" |
| 11 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 12 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 13 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 13 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" | 14 #include "chrome/browser/ui/webui/extensions/extension_settings_handler.h" |
| 14 #include "chrome/common/extensions/extension_test_util.h" | 15 #include "chrome/common/extensions/extension_test_util.h" |
| 15 #include "components/constrained_window/constrained_window_views.h" | 16 #include "components/constrained_window/constrained_window_views.h" |
| 16 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 MockExtensionInstallPromptDelegate delegate; | 223 MockExtensionInstallPromptDelegate delegate; |
| 223 scoped_ptr<ExtensionInstallDialogView> dialog( | 224 scoped_ptr<ExtensionInstallDialogView> dialog( |
| 224 new ExtensionInstallDialogView(profile(), web_contents(), &delegate, | 225 new ExtensionInstallDialogView(profile(), web_contents(), &delegate, |
| 225 CreatePrompt())); | 226 CreatePrompt())); |
| 226 dialog.reset(); | 227 dialog.reset(); |
| 227 | 228 |
| 228 EXPECT_EQ(1, delegate.abort_count()); | 229 EXPECT_EQ(1, delegate.abort_count()); |
| 229 EXPECT_EQ(0, delegate.proceed_count()); | 230 EXPECT_EQ(0, delegate.proceed_count()); |
| 230 } | 231 } |
| 231 } | 232 } |
| OLD | NEW |