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

Side by Side Diff: chrome/browser/cocoa/bookmark_menu_bridge_unittest.mm

Issue 3129007: FBTF: Forward declare everything possible in testing_profile.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: argh mac problems now Created 10 years, 4 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <AppKit/AppKit.h> 5 #import <AppKit/AppKit.h>
6 #import "base/scoped_nsobject.h" 6 #import "base/scoped_nsobject.h"
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "chrome/app/chrome_dll_resource.h" 8 #include "chrome/app/chrome_dll_resource.h"
9 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #include "chrome/browser/browser.h" 10 #include "chrome/browser/browser.h"
10 #include "chrome/browser/cocoa/bookmark_menu_bridge.h" 11 #include "chrome/browser/cocoa/bookmark_menu_bridge.h"
11 #include "chrome/browser/cocoa/browser_test_helper.h" 12 #include "chrome/browser/cocoa/browser_test_helper.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 #import "testing/gtest_mac.h" 14 #import "testing/gtest_mac.h"
14 #include "testing/platform_test.h" 15 #include "testing/platform_test.h"
15 16
16 class TestBookmarkMenuBridge : public BookmarkMenuBridge { 17 class TestBookmarkMenuBridge : public BookmarkMenuBridge {
17 public: 18 public:
18 TestBookmarkMenuBridge(Profile* profile) 19 TestBookmarkMenuBridge(Profile* profile)
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 EXPECT_TRUE([item image]); 309 EXPECT_TRUE([item image]);
309 310
310 model->SetTitle(node, L"New Title"); 311 model->SetTitle(node, L"New Title");
311 312
312 item = [menu itemWithTitle:@"Test Item"]; 313 item = [menu itemWithTitle:@"Test Item"];
313 EXPECT_FALSE(item); 314 EXPECT_FALSE(item);
314 item = [menu itemWithTitle:@"New Title"]; 315 item = [menu itemWithTitle:@"New Title"];
315 EXPECT_TRUE(item); 316 EXPECT_TRUE(item);
316 } 317 }
317 318
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/bookmark_folder_target_unittest.mm ('k') | chrome/browser/cocoa/bug_report_window_controller_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698