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

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

Issue 284893003: Move bookmarks/core/... to bookmarks/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing errors reported by presubmit Created 6 years, 7 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) 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"
11 #include "chrome/test/base/testing_profile.h" 11 #include "chrome/test/base/testing_profile.h"
12 #include "components/bookmarks/core/browser/bookmark_model.h" 12 #include "components/bookmarks/browser/bookmark_model.h"
13 #include "grit/ui_resources.h" 13 #include "grit/ui_resources.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 #include "testing/platform_test.h" 15 #include "testing/platform_test.h"
16 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
17 #include "ui/gfx/image/image.h" 17 #include "ui/gfx/image/image.h"
18 18
19 // Simple class to remember how many mouseEntered: and mouseExited: 19 // Simple class to remember how many mouseEntered: and mouseExited:
20 // calls it gets. Only used by BookmarkMouseForwarding but placed 20 // calls it gets. Only used by BookmarkMouseForwarding but placed
21 // at the top of the file to keep it outside the anon namespace. 21 // at the top of the file to keep it outside the anon namespace.
22 @interface ButtonRemembersMouseEnterExit : NSButton { 22 @interface ButtonRemembersMouseEnterExit : NSButton {
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 ASSERT_TRUE(bookmark_cell.get()); 198 ASSERT_TRUE(bookmark_cell.get());
199 199
200 EXPECT_EQ(1, [gradient_cell verticalTextOffset]); 200 EXPECT_EQ(1, [gradient_cell verticalTextOffset]);
201 EXPECT_EQ(0, [bookmark_cell verticalTextOffset]); 201 EXPECT_EQ(0, [bookmark_cell verticalTextOffset]);
202 202
203 EXPECT_NE([bookmark_cell verticalTextOffset], 203 EXPECT_NE([bookmark_cell verticalTextOffset],
204 [gradient_cell verticalTextOffset]); 204 [gradient_cell verticalTextOffset]);
205 } 205 }
206 206
207 } // namespace 207 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698