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

Side by Side Diff: chrome/browser/ui/cocoa/profiles/avatar_label_button_unittest.mm

Issue 454583002: Cleanup: Remove unneeded #includes for grit/, ui/base/l10n/l10n_util.h and ui/base/resource/resourc… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Cros some more Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "base/mac/scoped_nsobject.h" 7 #include "base/mac/scoped_nsobject.h"
8 #import "chrome/browser/ui/cocoa/profiles/avatar_label_button.h" 8 #import "chrome/browser/ui/cocoa/profiles/avatar_label_button.h"
9 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" 9 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
10 #include "grit/theme_resources.h"
11 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
12 11
13 class AvatarLabelButtonTest : public CocoaTest { 12 class AvatarLabelButtonTest : public CocoaTest {
14 public: 13 public:
15 AvatarLabelButtonTest() { 14 AvatarLabelButtonTest() {
16 NSRect content_frame = [[test_window() contentView] frame]; 15 NSRect content_frame = [[test_window() contentView] frame];
17 button_.reset([[AvatarLabelButton alloc] initWithFrame:content_frame]); 16 button_.reset([[AvatarLabelButton alloc] initWithFrame:content_frame]);
18 [[test_window() contentView] addSubview:button_]; 17 [[test_window() contentView] addSubview:button_];
19 } 18 }
20 19
21 protected: 20 protected:
22 base::scoped_nsobject<AvatarLabelButton> button_; 21 base::scoped_nsobject<AvatarLabelButton> button_;
23 }; 22 };
24 23
25 TEST_VIEW(AvatarLabelButtonTest, button_) 24 TEST_VIEW(AvatarLabelButtonTest, button_)
26 25
27 TEST_F(AvatarLabelButtonTest, TestHighlight) { 26 TEST_F(AvatarLabelButtonTest, TestHighlight) {
28 EXPECT_FALSE([[button_ cell] isHighlighted]); 27 EXPECT_FALSE([[button_ cell] isHighlighted]);
29 [button_ display]; 28 [button_ display];
30 [[button_ cell] setHighlighted:YES]; 29 [[button_ cell] setHighlighted:YES];
31 [button_ display]; 30 [button_ display];
32 } 31 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/avatar_label_button.mm ('k') | chrome/browser/ui/cocoa/styled_text_field_cell.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698