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

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

Issue 2394523002: cocoa browser: remove non-MD bookmark bar support (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 unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "base/mac/scoped_nsobject.h" 5 #include "base/mac/scoped_nsobject.h"
6 #include "base/strings/utf_string_conversions.h" 6 #include "base/strings/utf_string_conversions.h"
7 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 7 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" 8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h"
9 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" 9 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 base::scoped_nsobject<BookmarkButtonCell> bookmark_cell( 195 base::scoped_nsobject<BookmarkButtonCell> bookmark_cell(
196 [[BookmarkButtonCell alloc] initForNode:node 196 [[BookmarkButtonCell alloc] initForNode:node
197 text:@"small" 197 text:@"small"
198 image:nil 198 image:nil
199 menuController:nil]); 199 menuController:nil]);
200 200
201 ASSERT_TRUE(gradient_cell.get()); 201 ASSERT_TRUE(gradient_cell.get());
202 ASSERT_TRUE(bookmark_cell.get()); 202 ASSERT_TRUE(bookmark_cell.get());
203 203
204 EXPECT_EQ(1, [gradient_cell verticalTextOffset]); 204 EXPECT_EQ(1, [gradient_cell verticalTextOffset]);
205 if (ui::MaterialDesignController::IsModeMaterial()) { 205 EXPECT_EQ(-1, [bookmark_cell verticalTextOffset]);
206 EXPECT_EQ(-1, [bookmark_cell verticalTextOffset]);
207 } else {
208 EXPECT_EQ(0, [bookmark_cell verticalTextOffset]);
209 }
210 206
211 EXPECT_NE([bookmark_cell verticalTextOffset], 207 EXPECT_NE([bookmark_cell verticalTextOffset],
212 [gradient_cell verticalTextOffset]); 208 [gradient_cell verticalTextOffset]);
213 } 209 }
214 210
215 } // namespace 211 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698