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/launcher.h" | 7 #include "apps/launcher.h" |
8 #include "apps/ui/native_app_window.h" | 8 #include "apps/ui/native_app_window.h" |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1034 app_loaded_observer.Wait(); | 1034 app_loaded_observer.Wait(); |
1035 ASSERT_TRUE(should_install.seen()); | 1035 ASSERT_TRUE(should_install.seen()); |
1036 | 1036 |
1037 ExtensionTestMessageListener launched_listener("Launched", false); | 1037 ExtensionTestMessageListener launched_listener("Launched", false); |
1038 OpenApplication(AppLaunchParams( | 1038 OpenApplication(AppLaunchParams( |
1039 browser()->profile(), extension, LAUNCH_CONTAINER_NONE, NEW_WINDOW)); | 1039 browser()->profile(), extension, LAUNCH_CONTAINER_NONE, NEW_WINDOW)); |
1040 | 1040 |
1041 ASSERT_TRUE(launched_listener.WaitUntilSatisfied()); | 1041 ASSERT_TRUE(launched_listener.WaitUntilSatisfied()); |
1042 } | 1042 } |
1043 | 1043 |
1044 // Fails on Win7. http://crbug.com/171450 | 1044 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, Messaging) { |
1045 #if defined(OS_WIN) | |
1046 #define MAYBE_Messaging DISABLED_Messaging | |
1047 #else | |
1048 #define MAYBE_Messaging Messaging | |
1049 #endif | |
1050 | |
1051 IN_PROC_BROWSER_TEST_F(PlatformAppBrowserTest, MAYBE_Messaging) { | |
1052 ExtensionApiTest::ResultCatcher result_catcher; | 1045 ExtensionApiTest::ResultCatcher result_catcher; |
1053 LoadAndLaunchPlatformApp("messaging/app2", "Launched"); | 1046 LoadAndLaunchPlatformApp("messaging/app2", "Ready"); |
1054 LoadAndLaunchPlatformApp("messaging/app1", "Launched"); | 1047 LoadAndLaunchPlatformApp("messaging/app1", "Launched"); |
1055 EXPECT_TRUE(result_catcher.GetNextResult()); | 1048 EXPECT_TRUE(result_catcher.GetNextResult()); |
1056 } | 1049 } |
1057 | 1050 |
1058 // TODO(linux_aura) http://crbug.com/163931 | 1051 // TODO(linux_aura) http://crbug.com/163931 |
1059 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_AURA) | 1052 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_AURA) |
1060 #define MAYBE_WebContentsHasFocus DISABLED_WebContentsHasFocus | 1053 #define MAYBE_WebContentsHasFocus DISABLED_WebContentsHasFocus |
1061 #else | 1054 #else |
1062 // This test depends on focus and so needs to be in interactive_ui_tests. | 1055 // This test depends on focus and so needs to be in interactive_ui_tests. |
1063 // http://crbug.com/227041 | 1056 // http://crbug.com/227041 |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 LoadAndLaunchPlatformApp("reinstall_data_cleanup", "Launched"); | 1274 LoadAndLaunchPlatformApp("reinstall_data_cleanup", "Launched"); |
1282 ASSERT_TRUE(extension); | 1275 ASSERT_TRUE(extension); |
1283 ASSERT_EQ(extension_id, extension->id()); | 1276 ASSERT_EQ(extension_id, extension->id()); |
1284 | 1277 |
1285 ExtensionApiTest::ResultCatcher result_catcher; | 1278 ExtensionApiTest::ResultCatcher result_catcher; |
1286 EXPECT_TRUE(result_catcher.GetNextResult()); | 1279 EXPECT_TRUE(result_catcher.GetNextResult()); |
1287 } | 1280 } |
1288 } | 1281 } |
1289 | 1282 |
1290 } // namespace extensions | 1283 } // namespace extensions |
OLD | NEW |