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