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

Side by Side Diff: chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript_test.mm

Issue 6312156: Change includes of gfx/* to ui/gfx/* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 10 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
« no previous file with comments | « chrome/browser/ui/browser_window.h ('k') | chrome/browser/ui/cocoa/base_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #import "chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.h" 9 #import "chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.h"
10 #import "chrome/browser/ui/cocoa/applescript/constants_applescript.h" 10 #import "chrome/browser/ui/cocoa/applescript/constants_applescript.h"
11 #import "chrome/browser/ui/cocoa/applescript/window_applescript.h" 11 #import "chrome/browser/ui/cocoa/applescript/window_applescript.h"
12 #include "chrome/test/in_process_browser_test.h" 12 #include "chrome/test/in_process_browser_test.h"
13 #include "gfx/size.h"
14 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
15 #include "testing/gtest_mac.h" 14 #include "testing/gtest_mac.h"
15 #include "ui/gfx/size.h"
16 16
17 typedef InProcessBrowserTest BrowserCrApplicationAppleScriptTest; 17 typedef InProcessBrowserTest BrowserCrApplicationAppleScriptTest;
18 18
19 // Create windows of different |Type|. 19 // Create windows of different |Type|.
20 IN_PROC_BROWSER_TEST_F(BrowserCrApplicationAppleScriptTest, Creation) { 20 IN_PROC_BROWSER_TEST_F(BrowserCrApplicationAppleScriptTest, Creation) {
21 // Create additional |Browser*| objects of different type. 21 // Create additional |Browser*| objects of different type.
22 Profile* profile = browser()->profile(); 22 Profile* profile = browser()->profile();
23 Browser* b1 = Browser::CreateForType(Browser::TYPE_POPUP, profile); 23 Browser* b1 = Browser::CreateForType(Browser::TYPE_POPUP, profile);
24 Browser* b2 = Browser::CreateForApp("", gfx::Size(), profile, true); 24 Browser* b2 = Browser::CreateForApp("", gfx::Size(), profile, true);
25 Browser* b3 = Browser::CreateForApp("", gfx::Size(), profile, false); 25 Browser* b3 = Browser::CreateForApp("", gfx::Size(), profile, false);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 for (BookmarkFolderAppleScript* bookmarkFolder in bookmarkFolders) { 98 for (BookmarkFolderAppleScript* bookmarkFolder in bookmarkFolders) {
99 EXPECT_EQ(NSApp, 99 EXPECT_EQ(NSApp,
100 [bookmarkFolder container]); 100 [bookmarkFolder container]);
101 EXPECT_NSEQ(AppleScript::kBookmarkFoldersProperty, 101 EXPECT_NSEQ(AppleScript::kBookmarkFoldersProperty,
102 [bookmarkFolder containerProperty]); 102 [bookmarkFolder containerProperty]);
103 } 103 }
104 104
105 EXPECT_NSEQ(@"Other Bookmarks", [[NSApp otherBookmarks] title]); 105 EXPECT_NSEQ(@"Other Bookmarks", [[NSApp otherBookmarks] title]);
106 EXPECT_NSEQ(@"Bookmarks Bar", [[NSApp bookmarksBar] title]); 106 EXPECT_NSEQ(@"Bookmarks Bar", [[NSApp bookmarksBar] title]);
107 } 107 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_window.h ('k') | chrome/browser/ui/cocoa/base_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698