| 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 "base/macros.h" |
| 5 #include "base/run_loop.h" | 6 #include "base/run_loop.h" |
| 6 #include "chrome/browser/extensions/extension_uninstall_dialog.h" | 7 #include "chrome/browser/extensions/extension_uninstall_dialog.h" |
| 7 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 8 #include "chrome/browser/ui/browser_window.h" | 9 #include "chrome/browser/ui/browser_window.h" |
| 9 #include "chrome/test/base/in_process_browser_test.h" | 10 #include "chrome/test/base/in_process_browser_test.h" |
| 10 #include "content/public/test/test_utils.h" | 11 #include "content/public/test/test_utils.h" |
| 11 #include "extensions/common/extension.h" | 12 #include "extensions/common/extension.h" |
| 12 #include "extensions/common/extension_builder.h" | 13 #include "extensions/common/extension_builder.h" |
| 13 #include "extensions/common/value_builder.h" | 14 #include "extensions/common/value_builder.h" |
| 14 | 15 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 &delegate)); | 69 &delegate)); |
| 69 browser()->window()->Close(); | 70 browser()->window()->Close(); |
| 70 content::RunAllPendingInMessageLoop(); | 71 content::RunAllPendingInMessageLoop(); |
| 71 | 72 |
| 72 dialog->ConfirmUninstall(extension.get(), | 73 dialog->ConfirmUninstall(extension.get(), |
| 73 extensions::UNINSTALL_REASON_FOR_TESTING, | 74 extensions::UNINSTALL_REASON_FOR_TESTING, |
| 74 extensions::UNINSTALL_SOURCE_FOR_TESTING); | 75 extensions::UNINSTALL_SOURCE_FOR_TESTING); |
| 75 run_loop.Run(); | 76 run_loop.Run(); |
| 76 EXPECT_TRUE(delegate.canceled()); | 77 EXPECT_TRUE(delegate.canceled()); |
| 77 } | 78 } |
| OLD | NEW |