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/memory/scoped_nsobject.h" | 5 #include "base/memory/scoped_nsobject.h" |
6 #include "base/utf_string_conversions.h" | 6 #include "base/utf_string_conversions.h" |
7 #include "chrome/browser/bookmarks/bookmark_model.h" | 7 #include "chrome/browser/bookmarks/bookmark_model.h" |
8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" | 8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.h" |
9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu.h" | 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu.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 "grit/ui_resources_standard.h" | 12 #include "grit/ui_resources.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/gfx/mac/nsimage_cache.h" | 17 #include "ui/gfx/mac/nsimage_cache.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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 ASSERT_TRUE(bookmark_cell.get()); | 199 ASSERT_TRUE(bookmark_cell.get()); |
200 | 200 |
201 EXPECT_EQ(1, [gradient_cell verticalTextOffset]); | 201 EXPECT_EQ(1, [gradient_cell verticalTextOffset]); |
202 EXPECT_EQ(0, [bookmark_cell verticalTextOffset]); | 202 EXPECT_EQ(0, [bookmark_cell verticalTextOffset]); |
203 | 203 |
204 EXPECT_NE([bookmark_cell verticalTextOffset], | 204 EXPECT_NE([bookmark_cell verticalTextOffset], |
205 [gradient_cell verticalTextOffset]); | 205 [gradient_cell verticalTextOffset]); |
206 } | 206 } |
207 | 207 |
208 } // namespace | 208 } // namespace |
OLD | NEW |