| 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 #import "chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h" | 5 #import "chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #include "apps/shell_window_registry.h" | 9 #include "apps/shell_window_registry.h" |
| 10 #include "chrome/browser/apps/app_browsertest_util.h" | 10 #include "chrome/browser/apps/app_browsertest_util.h" |
| 11 #include "chrome/browser/ui/extensions/application_launch.h" | 11 #include "chrome/browser/ui/extensions/application_launch.h" |
| 12 #include "chrome/browser/profiles/profile.h" |
| 12 #include "content/public/browser/notification_service.h" | 13 #include "content/public/browser/notification_service.h" |
| 13 #include "content/public/test/test_utils.h" | 14 #include "content/public/test/test_utils.h" |
| 14 | 15 |
| 15 using extensions::PlatformAppBrowserTest; | 16 using extensions::PlatformAppBrowserTest; |
| 16 | 17 |
| 17 namespace { | 18 namespace { |
| 18 | 19 |
| 19 class NativeAppWindowCocoaBrowserTest : public PlatformAppBrowserTest { | 20 class NativeAppWindowCocoaBrowserTest : public PlatformAppBrowserTest { |
| 20 protected: | 21 protected: |
| 21 NativeAppWindowCocoaBrowserTest() {} | 22 NativeAppWindowCocoaBrowserTest() {} |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 other_window->Hide(); | 97 other_window->Hide(); |
| 97 EXPECT_FALSE([other_ns_window isVisible]); | 98 EXPECT_FALSE([other_ns_window isVisible]); |
| 98 | 99 |
| 99 // HideWithApp, ShowWithApp does not show the other window. | 100 // HideWithApp, ShowWithApp does not show the other window. |
| 100 window->HideWithApp(); | 101 window->HideWithApp(); |
| 101 EXPECT_FALSE([ns_window isVisible]); | 102 EXPECT_FALSE([ns_window isVisible]); |
| 102 window->ShowWithApp(); | 103 window->ShowWithApp(); |
| 103 EXPECT_TRUE([ns_window isVisible]); | 104 EXPECT_TRUE([ns_window isVisible]); |
| 104 EXPECT_FALSE([other_ns_window isVisible]); | 105 EXPECT_FALSE([other_ns_window isVisible]); |
| 105 } | 106 } |
| OLD | NEW |