OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/mac/scoped_nsobject.h" |
7 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
9 #include "chrome/browser/ui/browser_tabstrip.h" | 10 #include "chrome/browser/ui/browser_tabstrip.h" |
10 #import "chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.h" | 11 #import "chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.h" |
11 #import "chrome/browser/ui/cocoa/applescript/constants_applescript.h" | 12 #import "chrome/browser/ui/cocoa/applescript/constants_applescript.h" |
12 #import "chrome/browser/ui/cocoa/applescript/window_applescript.h" | 13 #import "chrome/browser/ui/cocoa/applescript/window_applescript.h" |
13 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 14 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
14 #include "chrome/test/base/in_process_browser_test.h" | 15 #include "chrome/test/base/in_process_browser_test.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 #include "testing/gtest_mac.h" | 17 #include "testing/gtest_mac.h" |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 for (BookmarkFolderAppleScript* bookmarkFolder in bookmarkFolders) { | 107 for (BookmarkFolderAppleScript* bookmarkFolder in bookmarkFolders) { |
107 EXPECT_EQ(NSApp, | 108 EXPECT_EQ(NSApp, |
108 [bookmarkFolder container]); | 109 [bookmarkFolder container]); |
109 EXPECT_NSEQ(AppleScript::kBookmarkFoldersProperty, | 110 EXPECT_NSEQ(AppleScript::kBookmarkFoldersProperty, |
110 [bookmarkFolder containerProperty]); | 111 [bookmarkFolder containerProperty]); |
111 } | 112 } |
112 | 113 |
113 EXPECT_NSEQ(@"Other Bookmarks", [[NSApp otherBookmarks] title]); | 114 EXPECT_NSEQ(@"Other Bookmarks", [[NSApp otherBookmarks] title]); |
114 EXPECT_NSEQ(@"Bookmarks Bar", [[NSApp bookmarksBar] title]); | 115 EXPECT_NSEQ(@"Bookmarks Bar", [[NSApp bookmarksBar] title]); |
115 } | 116 } |
OLD | NEW |