| 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 #import "chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h
" | 5 #import "chrome/browser/ui/cocoa/extensions/windowed_install_dialog_controller.h
" |
| 6 | 6 |
| 7 #include "base/run_loop.h" | 7 #include "base/run_loop.h" |
| 8 #include "base/threading/sequenced_worker_pool.h" |
| 8 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 9 #import "chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.
h" | 10 #import "chrome/browser/ui/cocoa/extensions/extension_install_prompt_test_utils.
h" |
| 10 #import "chrome/browser/ui/cocoa/extensions/extension_install_view_controller.h" | 11 #import "chrome/browser/ui/cocoa/extensions/extension_install_view_controller.h" |
| 11 #include "chrome/test/base/in_process_browser_test.h" | 12 #include "chrome/test/base/in_process_browser_test.h" |
| 12 #include "content/public/browser/browser_thread.h" | 13 #include "content/public/browser/browser_thread.h" |
| 13 #include "extensions/common/extension.h" | 14 #include "extensions/common/extension.h" |
| 14 | 15 |
| 15 namespace { | 16 namespace { |
| 16 | 17 |
| 17 // Similar to ShowExtensionInstallDialogImpl except this allows the created | 18 // Similar to ShowExtensionInstallDialogImpl except this allows the created |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 EXPECT_EQ(0, delegate.abort_count()); | 59 EXPECT_EQ(0, delegate.abort_count()); |
| 59 | 60 |
| 60 // Press cancel to close the window. | 61 // Press cancel to close the window. |
| 61 [[controller->GetViewController() cancelButton] performClick:nil]; | 62 [[controller->GetViewController() cancelButton] performClick:nil]; |
| 62 EXPECT_FALSE([window delegate]); | 63 EXPECT_FALSE([window delegate]); |
| 63 EXPECT_EQ(1, delegate.abort_count()); | 64 EXPECT_EQ(1, delegate.abort_count()); |
| 64 | 65 |
| 65 // Ensure the window is closed. | 66 // Ensure the window is closed. |
| 66 EXPECT_FALSE([window isVisible]); | 67 EXPECT_FALSE([window isVisible]); |
| 67 } | 68 } |
| OLD | NEW |