Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(263)

Side by Side Diff: chrome/browser/ui/cocoa/apps/native_app_window_cocoa_browsertest.mm

Issue 23524005: Introduce AppsClient and use it in apps to get the loaded profiles list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/apps/app_shim_menu_controller_mac_browsertest.mm ('k') | chrome/chrome_browser_extensions.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698