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

Side by Side Diff: chrome/browser/ui/cocoa/applescript/window_applescript_test.mm

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #import "base/scoped_nsobject.h" 7 #import "base/scoped_nsobject.h"
8 #include "base/sys_string_conversions.h" 8 #include "base/sys_string_conversions.h"
9 #import "chrome/browser/app_controller_mac.h" 9 #import "chrome/browser/app_controller_mac.h"
10 #import "chrome/browser/chrome_browser_application_mac.h" 10 #import "chrome/browser/chrome_browser_application_mac.h"
11 #include "chrome/browser/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #import "chrome/browser/ui/cocoa/applescript/constants_applescript.h" 12 #import "chrome/browser/ui/cocoa/applescript/constants_applescript.h"
13 #import "chrome/browser/ui/cocoa/applescript/error_applescript.h" 13 #import "chrome/browser/ui/cocoa/applescript/error_applescript.h"
14 #import "chrome/browser/ui/cocoa/applescript/tab_applescript.h" 14 #import "chrome/browser/ui/cocoa/applescript/tab_applescript.h"
15 #import "chrome/browser/ui/cocoa/applescript/window_applescript.h" 15 #import "chrome/browser/ui/cocoa/applescript/window_applescript.h"
16 #include "chrome/test/in_process_browser_test.h" 16 #include "chrome/test/in_process_browser_test.h"
17 #include "googleurl/src/gurl.h" 17 #include "googleurl/src/gurl.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #import "testing/gtest_mac.h" 19 #import "testing/gtest_mac.h"
20 20
21 typedef InProcessBrowserTest WindowAppleScriptTest; 21 typedef InProcessBrowserTest WindowAppleScriptTest;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Order of windows. 169 // Order of windows.
170 IN_PROC_BROWSER_TEST_F(WindowAppleScriptTest, WindowOrder) { 170 IN_PROC_BROWSER_TEST_F(WindowAppleScriptTest, WindowOrder) {
171 scoped_nsobject<WindowAppleScript> window2( 171 scoped_nsobject<WindowAppleScript> window2(
172 [[WindowAppleScript alloc] initWithBrowser:browser()]); 172 [[WindowAppleScript alloc] initWithBrowser:browser()]);
173 scoped_nsobject<WindowAppleScript> window1( 173 scoped_nsobject<WindowAppleScript> window1(
174 [[WindowAppleScript alloc] init]); 174 [[WindowAppleScript alloc] init]);
175 EXPECT_EQ([window1.get() windowComparator:window2.get()], NSOrderedAscending); 175 EXPECT_EQ([window1.get() windowComparator:window2.get()], NSOrderedAscending);
176 EXPECT_EQ([window2.get() windowComparator:window1.get()], 176 EXPECT_EQ([window2.get() windowComparator:window1.get()],
177 NSOrderedDescending); 177 NSOrderedDescending);
178 } 178 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698