| 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 #include "apps/shell_window.h" | 5 #include "apps/shell_window.h" |
| 6 #include "apps/shell_window_registry.h" | 6 #include "apps/shell_window_registry.h" |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "chrome/browser/apps/app_browsertest_util.h" | 8 #include "chrome/browser/apps/app_browsertest_util.h" |
| 9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/extensions/api/feedback_private/feedback_private_api.h" | 10 #include "chrome/browser/extensions/api/feedback_private/feedback_private_api.h" |
| 11 #include "chrome/browser/extensions/component_loader.h" | 11 #include "chrome/browser/extensions/component_loader.h" |
| 12 #include "chrome/browser/extensions/extension_browsertest.h" | 12 #include "chrome/browser/extensions/extension_browsertest.h" |
| 13 #include "chrome/browser/extensions/extension_system.h" | |
| 14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/common/extensions/api/feedback_private.h" | 15 #include "chrome/common/extensions/api/feedback_private.h" |
| 17 #include "chrome/test/base/in_process_browser_test.h" | 16 #include "chrome/test/base/in_process_browser_test.h" |
| 18 #include "chrome/test/base/ui_test_utils.h" | 17 #include "chrome/test/base/ui_test_utils.h" |
| 19 #include "content/public/common/content_switches.h" | 18 #include "content/public/common/content_switches.h" |
| 20 #include "extensions/browser/event_router.h" | 19 #include "extensions/browser/event_router.h" |
| 20 #include "extensions/browser/extension_system.h" |
| 21 | 21 |
| 22 using apps::ShellWindow; | 22 using apps::ShellWindow; |
| 23 using apps::ShellWindowRegistry; | 23 using apps::ShellWindowRegistry; |
| 24 using extensions::Extension; | 24 using extensions::Extension; |
| 25 | 25 |
| 26 namespace { | 26 namespace { |
| 27 | 27 |
| 28 void StopMessageLoopCallback() { | 28 void StopMessageLoopCallback() { |
| 29 base::MessageLoopForUI::current()->Quit(); | 29 base::MessageLoopForUI::current()->Quit(); |
| 30 } | 30 } |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 IN_PROC_BROWSER_TEST_F(FeedbackTest, ShowFeedback) { | 84 IN_PROC_BROWSER_TEST_F(FeedbackTest, ShowFeedback) { |
| 85 WaitForExtensionViewsToLoad(); | 85 WaitForExtensionViewsToLoad(); |
| 86 | 86 |
| 87 ASSERT_TRUE(IsFeedbackAppAvailable()); | 87 ASSERT_TRUE(IsFeedbackAppAvailable()); |
| 88 StartFeedbackUI(); | 88 StartFeedbackUI(); |
| 89 VerifyFeedbackAppLaunch(); | 89 VerifyFeedbackAppLaunch(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 } // namespace extensions | 92 } // namespace extensions |
| OLD | NEW |