| 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 "chrome/browser/ui/cocoa/reload_button.h" | 7 #import "chrome/browser/ui/cocoa/toolbar/reload_button.h" |
| 8 | 8 |
| 9 #include "base/scoped_nsobject.h" | 9 #include "base/scoped_nsobject.h" |
| 10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
| 11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
| 12 #import "chrome/browser/ui/cocoa/test_event_utils.h" | 12 #import "chrome/browser/ui/cocoa/test_event_utils.h" |
| 13 #import "testing/gtest_mac.h" | 13 #import "testing/gtest_mac.h" |
| 14 #include "testing/platform_test.h" | 14 #include "testing/platform_test.h" |
| 15 #import "third_party/ocmock/OCMock/OCMock.h" | 15 #import "third_party/ocmock/OCMock/OCMock.h" |
| 16 | 16 |
| 17 @protocol TargetActionMock <NSObject> | 17 @protocol TargetActionMock <NSObject> |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 EXPECT_EQ(IDC_STOP, [button_ tag]); | 250 EXPECT_EQ(IDC_STOP, [button_ tag]); |
| 251 EXPECT_FALSE([button_ isEnabled]); | 251 EXPECT_FALSE([button_ isEnabled]); |
| 252 [NSApp postEvent:click.second atStart:YES]; | 252 [NSApp postEvent:click.second atStart:YES]; |
| 253 [button_ mouseDown:click.first]; | 253 [button_ mouseDown:click.first]; |
| 254 EXPECT_EQ(IDC_STOP, [button_ tag]); | 254 EXPECT_EQ(IDC_STOP, [button_ tag]); |
| 255 | 255 |
| 256 [button_ setTarget:nil]; | 256 [button_ setTarget:nil]; |
| 257 } | 257 } |
| 258 | 258 |
| 259 } // namespace | 259 } // namespace |
| OLD | NEW |