| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #import "base/scoped_nsobject.h" | 7 #import "base/scoped_nsobject.h" |
| 8 #include "chrome/app/chrome_dll_resource.h" | 8 #include "chrome/app/chrome_command_ids.h" |
| 9 #include "chrome/browser/cocoa/browser_test_helper.h" | 9 #include "chrome/browser/cocoa/browser_test_helper.h" |
| 10 #import "chrome/browser/cocoa/cocoa_test_helper.h" | 10 #import "chrome/browser/cocoa/cocoa_test_helper.h" |
| 11 #import "chrome/browser/cocoa/gradient_button_cell.h" | 11 #import "chrome/browser/cocoa/gradient_button_cell.h" |
| 12 #import "chrome/browser/cocoa/toolbar_controller.h" | 12 #import "chrome/browser/cocoa/toolbar_controller.h" |
| 13 #import "chrome/browser/cocoa/view_resizer_pong.h" | 13 #import "chrome/browser/cocoa/view_resizer_pong.h" |
| 14 #include "chrome/browser/prefs/pref_service.h" | 14 #include "chrome/browser/prefs/pref_service.h" |
| 15 #include "chrome/common/pref_names.h" | 15 #include "chrome/common/pref_names.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 #include "testing/platform_test.h" | 17 #include "testing/platform_test.h" |
| 18 | 18 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 [view setHitTestReturn:button]; | 228 [view setHitTestReturn:button]; |
| 229 EXPECT_FALSE([bar_ hoverButtonForEvent:event]); | 229 EXPECT_FALSE([bar_ hoverButtonForEvent:event]); |
| 230 | 230 |
| 231 // Now! | 231 // Now! |
| 232 scoped_nsobject<GradientButtonCell> cell([[GradientButtonCell alloc] init]); | 232 scoped_nsobject<GradientButtonCell> cell([[GradientButtonCell alloc] init]); |
| 233 [button setCell:cell.get()]; | 233 [button setCell:cell.get()]; |
| 234 EXPECT_TRUE([bar_ hoverButtonForEvent:nil]); | 234 EXPECT_TRUE([bar_ hoverButtonForEvent:nil]); |
| 235 } | 235 } |
| 236 | 236 |
| 237 } // namespace | 237 } // namespace |
| OLD | NEW |