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

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

Issue 4710001: Split out command IDs from chrome_dll_resource.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | Annotate | Revision Log
OLDNEW
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/cocoa/reload_button.h" 7 #import "chrome/browser/cocoa/reload_button.h"
8 8
9 #include "base/scoped_nsobject.h" 9 #include "base/scoped_nsobject.h"
10 #include "chrome/app/chrome_dll_resource.h" 10 #include "chrome/app/chrome_command_ids.h"
11 #import "chrome/browser/cocoa/cocoa_test_helper.h" 11 #import "chrome/browser/cocoa/cocoa_test_helper.h"
12 #import "chrome/browser/cocoa/test_event_utils.h" 12 #import "chrome/browser/cocoa/test_event_utils.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 #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>
18 - (void)anAction:(id)sender; 18 - (void)anAction:(id)sender;
19 @end 19 @end
20 20
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 EXPECT_EQ([button_ tag], IDC_STOP); 229 EXPECT_EQ([button_ tag], IDC_STOP);
230 EXPECT_FALSE([button_ isEnabled]); 230 EXPECT_FALSE([button_ isEnabled]);
231 [NSApp postEvent:click.second atStart:YES]; 231 [NSApp postEvent:click.second atStart:YES];
232 [button_ mouseDown:click.first]; 232 [button_ mouseDown:click.first];
233 EXPECT_EQ([button_ tag], IDC_STOP); 233 EXPECT_EQ([button_ tag], IDC_STOP);
234 234
235 [button_ setTarget:nil]; 235 [button_ setTarget:nil];
236 } 236 }
237 237
238 } // namespace 238 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698