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

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

Issue 1631283002: [Mac] Remove some dead avatar menu code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 4 years, 11 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
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/avatar_label_button.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #import "chrome/browser/ui/cocoa/profiles/avatar_label_button.h"
6
7 #import <Cocoa/Cocoa.h>
8
9 #include "base/mac/scoped_nsobject.h"
10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
11 #include "testing/gtest/include/gtest/gtest.h"
12
13 class AvatarLabelButtonTest : public CocoaTest {
14 public:
15 AvatarLabelButtonTest() {
16 NSRect content_frame = [[test_window() contentView] frame];
17 button_.reset([[AvatarLabelButton alloc] initWithFrame:content_frame]);
18 [[test_window() contentView] addSubview:button_];
19 }
20
21 protected:
22 base::scoped_nsobject<AvatarLabelButton> button_;
23 };
24
25 TEST_VIEW(AvatarLabelButtonTest, button_)
26
27 TEST_F(AvatarLabelButtonTest, TestHighlight) {
28 EXPECT_FALSE([[button_ cell] isHighlighted]);
29 [button_ display];
30 [[button_ cell] setHighlighted:YES];
31 [button_ display];
32 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/profiles/avatar_label_button.mm ('k') | chrome/chrome_browser_ui.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698