Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: chrome/browser/ui/cocoa/toolbar/reload_button_unittest.mm

Issue 657443004: MacViews: Get views based toolbar to compile on the Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@views-findbar
Patch Set: Rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/toolbar/reload_button.h" 7 #import "chrome/browser/ui/cocoa/toolbar/reload_button_cocoa.h"
8 8
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/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/image_button_cell.h" 12 #import "chrome/browser/ui/cocoa/image_button_cell.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 #import "ui/events/test/cocoa_test_event_utils.h" 16 #import "ui/events/test/cocoa_test_event_utils.h"
17 17
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 EXPECT_EQ(IDC_STOP, [button_ tag]); 261 EXPECT_EQ(IDC_STOP, [button_ tag]);
262 EXPECT_FALSE([button_ isEnabled]); 262 EXPECT_FALSE([button_ isEnabled]);
263 [NSApp postEvent:click.second atStart:YES]; 263 [NSApp postEvent:click.second atStart:YES];
264 [button_ mouseDown:click.first]; 264 [button_ mouseDown:click.first];
265 EXPECT_EQ(IDC_STOP, [button_ tag]); 265 EXPECT_EQ(IDC_STOP, [button_ tag]);
266 266
267 [button_ setTarget:nil]; 267 [button_ setTarget:nil];
268 } 268 }
269 269
270 } // namespace 270 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/toolbar/reload_button_cocoa.mm ('k') | chrome/browser/ui/cocoa/toolbar/toolbar_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698