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

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

Issue 757433004: Add SOURCE_TEST. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed remaining instances of SOURCE_BROWSER_TEST. Created 6 years 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
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 "base/mac/mac_util.h" 9 #include "base/mac/mac_util.h"
10 #include "base/mac/sdk_forward_declarations.h" 10 #include "base/mac/sdk_forward_declarations.h"
(...skipping 18 matching lines...) Expand all
29 app_ = InstallExtension( 29 app_ = InstallExtension(
30 test_data_dir_.AppendASCII("platform_apps").AppendASCII("minimal"), 1); 30 test_data_dir_.AppendASCII("platform_apps").AppendASCII("minimal"), 1);
31 EXPECT_TRUE(app_); 31 EXPECT_TRUE(app_);
32 32
33 for (int i = 0; i < num_windows; ++i) { 33 for (int i = 0; i < num_windows; ++i) {
34 content::WindowedNotificationObserver app_loaded_observer( 34 content::WindowedNotificationObserver app_loaded_observer(
35 content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME, 35 content::NOTIFICATION_LOAD_COMPLETED_MAIN_FRAME,
36 content::NotificationService::AllSources()); 36 content::NotificationService::AllSources());
37 OpenApplication( 37 OpenApplication(
38 AppLaunchParams(profile(), app_, extensions::LAUNCH_CONTAINER_NONE, 38 AppLaunchParams(profile(), app_, extensions::LAUNCH_CONTAINER_NONE,
39 NEW_WINDOW, extensions::SOURCE_UNTRACKED)); 39 NEW_WINDOW, extensions::SOURCE_TEST));
40 app_loaded_observer.Wait(); 40 app_loaded_observer.Wait();
41 } 41 }
42 } 42 }
43 43
44 const extensions::Extension* app_; 44 const extensions::Extension* app_;
45 45
46 private: 46 private:
47 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoaBrowserTest); 47 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoaBrowserTest);
48 }; 48 };
49 49
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 watcher.reset([[ScopedNotificationWatcher alloc] 203 watcher.reset([[ScopedNotificationWatcher alloc]
204 initWithNotification:NSWindowDidExitFullScreenNotification 204 initWithNotification:NSWindowDidExitFullScreenNotification
205 andObject:ns_window]); 205 andObject:ns_window]);
206 [ns_window toggleFullScreen:nil]; 206 [ns_window toggleFullScreen:nil];
207 [watcher waitForNotification]; 207 [watcher waitForNotification];
208 EXPECT_EQ(extensions::AppWindow::FULLSCREEN_TYPE_NONE, 208 EXPECT_EQ(extensions::AppWindow::FULLSCREEN_TYPE_NONE,
209 app_window->fullscreen_types_for_test()); 209 app_window->fullscreen_types_for_test());
210 EXPECT_FALSE(window->IsFullscreen()); 210 EXPECT_FALSE(window->IsFullscreen());
211 EXPECT_FALSE([ns_window styleMask] & NSFullScreenWindowMask); 211 EXPECT_FALSE([ns_window styleMask] & NSFullScreenWindowMask);
212 } 212 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698