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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
| 9 #include "base/message_loop/message_loop.h" |
9 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
11 #include "chrome/browser/extensions/extension_browsertest.h" | 12 #include "chrome/browser/extensions/extension_browsertest.h" |
12 #include "chrome/browser/extensions/extension_service.h" | 13 #include "chrome/browser/extensions/extension_service.h" |
13 #include "chrome/browser/extensions/extension_storage_monitor.h" | 14 #include "chrome/browser/extensions/extension_storage_monitor.h" |
14 #include "chrome/browser/ui/extensions/app_launch_params.h" | 15 #include "chrome/browser/ui/extensions/app_launch_params.h" |
15 #include "chrome/browser/ui/extensions/application_launch.h" | 16 #include "chrome/browser/ui/extensions/application_launch.h" |
16 #include "content/public/test/test_utils.h" | 17 #include "content/public/test/test_utils.h" |
17 #include "extensions/browser/extension_dialog_auto_confirm.h" | 18 #include "extensions/browser/extension_dialog_auto_confirm.h" |
18 #include "extensions/browser/extension_prefs.h" | 19 #include "extensions/browser/extension_prefs.h" |
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 ScopedTestDialogAutoConfirm::ACCEPT); | 269 ScopedTestDialogAutoConfirm::ACCEPT); |
269 TestExtensionRegistryObserver observer(ExtensionRegistry::Get(profile()), | 270 TestExtensionRegistryObserver observer(ExtensionRegistry::Get(profile()), |
270 extension->id()); | 271 extension->id()); |
271 message_center::MessageCenter::Get()->ClickOnNotificationButton( | 272 message_center::MessageCenter::Get()->ClickOnNotificationButton( |
272 GetNotificationId(extension->id()), | 273 GetNotificationId(extension->id()), |
273 ExtensionStorageMonitor::BUTTON_UNINSTALL); | 274 ExtensionStorageMonitor::BUTTON_UNINSTALL); |
274 observer.WaitForExtensionUninstalled(); | 275 observer.WaitForExtensionUninstalled(); |
275 } | 276 } |
276 | 277 |
277 } // namespace extensions | 278 } // namespace extensions |
OLD | NEW |