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.h" | 7 #include "chrome/browser/bookmarks/bookmark_model.h" |
8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 8 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" | 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" |
10 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 10 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" |
11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
| 12 #include "chrome/test/base/testing_profile.h" |
12 #include "grit/ui_resources.h" | 13 #include "grit/ui_resources.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
14 #include "testing/platform_test.h" | 15 #include "testing/platform_test.h" |
15 #include "ui/base/resource/resource_bundle.h" | 16 #include "ui/base/resource/resource_bundle.h" |
16 #include "ui/gfx/image/image.h" | 17 #include "ui/gfx/image/image.h" |
17 | 18 |
18 // Simple class to remember how many mouseEntered: and mouseExited: | 19 // Simple class to remember how many mouseEntered: and mouseExited: |
19 // calls it gets. Only used by BookmarkMouseForwarding but placed | 20 // calls it gets. Only used by BookmarkMouseForwarding but placed |
20 // 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. |
21 @interface ButtonRemembersMouseEnterExit : NSButton { | 22 @interface ButtonRemembersMouseEnterExit : NSButton { |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 ASSERT_TRUE(bookmark_cell.get()); | 198 ASSERT_TRUE(bookmark_cell.get()); |
198 | 199 |
199 EXPECT_EQ(1, [gradient_cell verticalTextOffset]); | 200 EXPECT_EQ(1, [gradient_cell verticalTextOffset]); |
200 EXPECT_EQ(0, [bookmark_cell verticalTextOffset]); | 201 EXPECT_EQ(0, [bookmark_cell verticalTextOffset]); |
201 | 202 |
202 EXPECT_NE([bookmark_cell verticalTextOffset], | 203 EXPECT_NE([bookmark_cell verticalTextOffset], |
203 [gradient_cell verticalTextOffset]); | 204 [gradient_cell verticalTextOffset]); |
204 } | 205 } |
205 | 206 |
206 } // namespace | 207 } // namespace |
OLD | NEW |