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

Side by Side Diff: chrome/browser/cocoa/bookmark_all_tabs_controller_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) 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 "base/scoped_nsobject.h" 7 #include "base/scoped_nsobject.h"
8 #include "base/sys_string_conversions.h" 8 #include "base/sys_string_conversions.h"
9 #include "chrome/browser/bookmarks/bookmark_model.h"
9 #import "chrome/browser/cocoa/bookmark_all_tabs_controller.h" 10 #import "chrome/browser/cocoa/bookmark_all_tabs_controller.h"
10 #include "chrome/browser/cocoa/browser_test_helper.h" 11 #include "chrome/browser/cocoa/browser_test_helper.h"
11 #import "chrome/browser/cocoa/cocoa_test_helper.h" 12 #import "chrome/browser/cocoa/cocoa_test_helper.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 #include "testing/platform_test.h" 14 #include "testing/platform_test.h"
14 15
15 @interface BookmarkAllTabsControllerOverride : BookmarkAllTabsController 16 @interface BookmarkAllTabsControllerOverride : BookmarkAllTabsController
16 @end 17 @end
17 18
18 @implementation BookmarkAllTabsControllerOverride 19 @implementation BookmarkAllTabsControllerOverride
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // OK button should always be enabled. 72 // OK button should always be enabled.
72 EXPECT_TRUE([controller_ okButtonEnabled]); 73 EXPECT_TRUE([controller_ okButtonEnabled]);
73 [controller_ selectTestNodeInBrowser:group_a_]; 74 [controller_ selectTestNodeInBrowser:group_a_];
74 [controller_ setDisplayName:@"ALL MY TABS"]; 75 [controller_ setDisplayName:@"ALL MY TABS"];
75 [controller_ ok:nil]; 76 [controller_ ok:nil];
76 EXPECT_EQ(4, group_a_->GetChildCount()); 77 EXPECT_EQ(4, group_a_->GetChildCount());
77 const BookmarkNode* folderChild = group_a_->GetChild(3); 78 const BookmarkNode* folderChild = group_a_->GetChild(3);
78 EXPECT_EQ(folderChild->GetTitle(), L"ALL MY TABS"); 79 EXPECT_EQ(folderChild->GetTitle(), L"ALL MY TABS");
79 EXPECT_EQ(3, folderChild->GetChildCount()); 80 EXPECT_EQ(3, folderChild->GetChildCount());
80 } 81 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698