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

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

Issue 2420463002: Fix a deprecated declaration warning in browsercrapplication+applescript_test.mm. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript_test.mm
diff --git a/chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript_test.mm b/chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript_test.mm
index 3f4bdfd77b6e641dc5d870ce1a3752b06c5fa440..e1f4507bd96896789f43dd33563267edcc60e94d 100644
--- a/chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript_test.mm
+++ b/chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript_test.mm
@@ -4,10 +4,12 @@
#import <Cocoa/Cocoa.h>
+#include "base/mac/foundation_util.h"
#include "base/mac/scoped_nsobject.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_tabstrip.h"
+#include "chrome/browser/ui/cocoa/applescript/bookmark_folder_applescript.h"
#import "chrome/browser/ui/cocoa/applescript/browsercrapplication+applescript.h"
#import "chrome/browser/ui/cocoa/applescript/constants_applescript.h"
#import "chrome/browser/ui/cocoa/applescript/window_applescript.h"
@@ -110,6 +112,10 @@ IN_PROC_BROWSER_TEST_F(BrowserCrApplicationAppleScriptTest,
[bookmarkFolder containerProperty]);
}
- EXPECT_NSEQ(@"Other Bookmarks", [[NSApp otherBookmarks] title]);
- EXPECT_NSEQ(@"Bookmarks Bar", [[NSApp bookmarksBar] title]);
+ BookmarkFolderAppleScript* otherBookmarks =
+ base::mac::ObjCCast<BookmarkFolderAppleScript>([NSApp otherBookmarks]);
+ EXPECT_NSEQ(@"Other Bookmarks", [otherBookmarks title]);
+ BookmarkFolderAppleScript* bookmarksBar =
+ base::mac::ObjCCast<BookmarkFolderAppleScript>([NSApp bookmarksBar]);
+ EXPECT_NSEQ(@"Bookmarks Bar", [bookmarksBar title]);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698