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

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller_unittest.mm

Issue 7528007: [Mac] Delete more bookmark bar folder code. This removes things that were missed last time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 9 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 | Annotate | Revision Log
OLDNEW
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/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/memory/scoped_nsobject.h" 8 #include "base/memory/scoped_nsobject.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/bookmarks/bookmark_model.h" 10 #include "chrome/browser/bookmarks/bookmark_model.h"
11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h" 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_constants.h"
12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" 12 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h"
14 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h" 13 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.h"
14 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h"
15 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge.h" 15 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_menu_bridge.h"
16 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h" 16 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_unittest_helper.h"
17 #include "chrome/browser/ui/cocoa/browser_test_helper.h" 17 #include "chrome/browser/ui/cocoa/browser_test_helper.h"
18 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 18 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
19 #import "chrome/browser/ui/cocoa/view_resizer_pong.h" 19 #import "chrome/browser/ui/cocoa/view_resizer_pong.h"
20 #include "chrome/test/base/model_test_utils.h" 20 #include "chrome/test/base/model_test_utils.h"
21 #include "testing/gtest/include/gtest/gtest.h" 21 #include "testing/gtest/include/gtest/gtest.h"
22 #import "testing/gtest_mac.h" 22 #import "testing/gtest_mac.h"
23 #include "testing/platform_test.h" 23 #include "testing/platform_test.h"
24 24
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 EXPECT_NSEQ(@"subfolder", [[items objectAtIndex:3] title]); 150 EXPECT_NSEQ(@"subfolder", [[items objectAtIndex:3] title]);
151 EXPECT_NSEQ(@"item 4", [[items objectAtIndex:4] title]); 151 EXPECT_NSEQ(@"item 4", [[items objectAtIndex:4] title]);
152 VerifyBottomItems(items); 152 VerifyBottomItems(items);
153 153
154 NSArray* subitems = [[[items objectAtIndex:3] submenu] itemArray]; 154 NSArray* subitems = [[[items objectAtIndex:3] submenu] itemArray];
155 ASSERT_EQ(2 + kBottomItemCount, [subitems count]); 155 ASSERT_EQ(2 + kBottomItemCount, [subitems count]);
156 EXPECT_NSEQ(@"subitem 1", [[subitems objectAtIndex:0] title]); 156 EXPECT_NSEQ(@"subitem 1", [[subitems objectAtIndex:0] title]);
157 EXPECT_NSEQ(@"subitem 2", [[subitems objectAtIndex:1] title]); 157 EXPECT_NSEQ(@"subitem 2", [[subitems objectAtIndex:1] title]);
158 VerifyBottomItems(subitems); 158 VerifyBottomItems(subitems);
159 } 159 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698