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

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

Issue 480693002: Use a qualified path for ui_resources.h grit includes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: REBASE Created 6 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) 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 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h" 6 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_button_cell.h"
7 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 7 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
8 #include "grit/ui_resources.h"
9 #include "ui/base/resource/resource_bundle.h" 8 #include "ui/base/resource/resource_bundle.h"
9 #include "ui/resources/grit/ui_resources.h"
10 10
11 namespace { 11 namespace {
12 12
13 class BookmarkBarFolderButtonCellTest : public CocoaTest { 13 class BookmarkBarFolderButtonCellTest : public CocoaTest {
14 }; 14 };
15 15
16 // Basic creation. 16 // Basic creation.
17 TEST_F(BookmarkBarFolderButtonCellTest, Create) { 17 TEST_F(BookmarkBarFolderButtonCellTest, Create) {
18 base::scoped_nsobject<BookmarkBarFolderButtonCell> cell; 18 base::scoped_nsobject<BookmarkBarFolderButtonCell> cell;
19 cell.reset([[BookmarkBarFolderButtonCell buttonCellForNode:nil 19 cell.reset([[BookmarkBarFolderButtonCell buttonCellForNode:nil
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 [folder_cell setBookmarkCellText:@"test" image:image]; 74 [folder_cell setBookmarkCellText:@"test" image:image];
75 float folder_cell_x_with_title = ([cell imageRectForBounds:rect]).origin.x; 75 float folder_cell_x_with_title = ([cell imageRectForBounds:rect]).origin.x;
76 float folder_cell_width_with_title = ([cell cellSize]).width; 76 float folder_cell_width_with_title = ([cell cellSize]).width;
77 77
78 EXPECT_EQ(folder_cell_x_without_title, folder_cell_x_with_title); 78 EXPECT_EQ(folder_cell_x_without_title, folder_cell_x_with_title);
79 EXPECT_EQ(folder_cell_width_without_title, folder_cell_width_with_title); 79 EXPECT_EQ(folder_cell_width_without_title, folder_cell_width_with_title);
80 } 80 }
81 81
82 } // namespace 82 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698