| 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" | 5 #include "apps/app_window.h" |
| 6 #include "apps/app_window_registry.h" | 6 #include "apps/app_window_registry.h" |
| 7 #include "apps/common/api/app_runtime.h" | 7 #include "apps/common/api/app_runtime.h" |
| 8 #include "apps/launcher.h" | 8 #include "apps/launcher.h" |
| 9 #include "apps/ui/native_app_window.h" | 9 #include "apps/ui/native_app_window.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1095 LoadAndLaunchPlatformApp("minimal"); | 1095 LoadAndLaunchPlatformApp("minimal"); |
| 1096 ASSERT_TRUE(launched_listener.WaitUntilSatisfied()); | 1096 ASSERT_TRUE(launched_listener.WaitUntilSatisfied()); |
| 1097 | 1097 |
| 1098 EXPECT_EQ(1LU, GetAppWindowCount()); | 1098 EXPECT_EQ(1LU, GetAppWindowCount()); |
| 1099 EXPECT_TRUE(GetFirstAppWindow() | 1099 EXPECT_TRUE(GetFirstAppWindow() |
| 1100 ->web_contents() | 1100 ->web_contents() |
| 1101 ->GetRenderWidgetHostView() | 1101 ->GetRenderWidgetHostView() |
| 1102 ->HasFocus()); | 1102 ->HasFocus()); |
| 1103 } | 1103 } |
| 1104 | 1104 |
| 1105 #if defined(OS_WIN) || defined(OS_LINUX) | 1105 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) |
| 1106 #define MAYBE_WindowDotPrintShouldBringUpPrintPreview \ | 1106 #define MAYBE_WindowDotPrintShouldBringUpPrintPreview \ |
| 1107 DISABLED_WindowDotPrintShouldBringUpPrintPreview | 1107 DISABLED_WindowDotPrintShouldBringUpPrintPreview |
| 1108 #else | 1108 #else |
| 1109 #define MAYBE_WindowDotPrintShouldBringUpPrintPreview \ | 1109 #define MAYBE_WindowDotPrintShouldBringUpPrintPreview \ |
| 1110 WindowDotPrintShouldBringUpPrintPreview | 1110 WindowDotPrintShouldBringUpPrintPreview |
| 1111 #endif | 1111 #endif |
| 1112 | 1112 |
| 1113 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, | 1113 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, |
| 1114 MAYBE_WindowDotPrintShouldBringUpPrintPreview) { | 1114 MAYBE_WindowDotPrintShouldBringUpPrintPreview) { |
| 1115 ScopedPreviewTestingDelegate preview_delegate(true); | 1115 ScopedPreviewTestingDelegate preview_delegate(true); |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1317 | 1317 |
| 1318 ExtensionApiTest::ResultCatcher result_catcher; | 1318 ExtensionApiTest::ResultCatcher result_catcher; |
| 1319 | 1319 |
| 1320 ASSERT_TRUE(launched_listener.WaitUntilSatisfied()); | 1320 ASSERT_TRUE(launched_listener.WaitUntilSatisfied()); |
| 1321 | 1321 |
| 1322 EXPECT_TRUE(result_catcher.GetNextResult()); | 1322 EXPECT_TRUE(result_catcher.GetNextResult()); |
| 1323 } | 1323 } |
| 1324 } | 1324 } |
| 1325 | 1325 |
| 1326 } // namespace extensions | 1326 } // namespace extensions |
| OLD | NEW |