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

Side by Side Diff: chrome/browser/cocoa/toolbar_controller_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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698