| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |