OLD | NEW |
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/browser/bookmark_model.h" | 12 #include "components/bookmarks/browser/bookmark_model.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
15 #include "ui/base/resource/resource_bundle.h" | 15 #include "ui/base/resource/resource_bundle.h" |
16 #include "ui/gfx/image/image.h" | 16 #include "ui/gfx/image/image.h" |
17 #include "ui/resources/grit/ui_resources.h" | 17 #include "ui/resources/grit/ui_resources.h" |
18 | 18 |
19 using bookmarks::BookmarkModel; | 19 using bookmarks::BookmarkModel; |
| 20 using bookmarks::BookmarkNode; |
20 | 21 |
21 // Simple class to remember how many mouseEntered: and mouseExited: | 22 // Simple class to remember how many mouseEntered: and mouseExited: |
22 // calls it gets. Only used by BookmarkMouseForwarding but placed | 23 // calls it gets. Only used by BookmarkMouseForwarding but placed |
23 // at the top of the file to keep it outside the anon namespace. | 24 // at the top of the file to keep it outside the anon namespace. |
24 @interface ButtonRemembersMouseEnterExit : NSButton { | 25 @interface ButtonRemembersMouseEnterExit : NSButton { |
25 @public | 26 @public |
26 int enters_; | 27 int enters_; |
27 int exits_; | 28 int exits_; |
28 } | 29 } |
29 @end | 30 @end |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 ASSERT_TRUE(bookmark_cell.get()); | 201 ASSERT_TRUE(bookmark_cell.get()); |
201 | 202 |
202 EXPECT_EQ(1, [gradient_cell verticalTextOffset]); | 203 EXPECT_EQ(1, [gradient_cell verticalTextOffset]); |
203 EXPECT_EQ(0, [bookmark_cell verticalTextOffset]); | 204 EXPECT_EQ(0, [bookmark_cell verticalTextOffset]); |
204 | 205 |
205 EXPECT_NE([bookmark_cell verticalTextOffset], | 206 EXPECT_NE([bookmark_cell verticalTextOffset], |
206 [gradient_cell verticalTextOffset]); | 207 [gradient_cell verticalTextOffset]); |
207 } | 208 } |
208 | 209 |
209 } // namespace | 210 } // namespace |
OLD | NEW |