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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_pop_up_button_unittest.mm

Issue 18112007: [rAC] added popup highlighting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: New shiny rendering and other review fixes. Created 7 years, 5 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
(Empty)
1 // Copyright (c) 2013 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/autofill/autofill_pop_up_button.h"
6
7 #import "base/mac/scoped_nsobject.h"
8 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "testing/platform_test.h"
11
12 class AutofillPopUpButtonTest : public CocoaTest {
13 public:
14 AutofillPopUpButtonTest() {
15 NSRect frame = NSMakeRect(0, 0, 50, 30);
16 button_.reset([[AutofillPopUpButton alloc] initWithFrame:frame]);
17 [button_ sizeToFit];
18 [[test_window() contentView] addSubview:button_];
19 }
20
21 protected:
22 base::scoped_nsobject<AutofillPopUpButton> button_;
23
24 DISALLOW_COPY_AND_ASSIGN(AutofillPopUpButtonTest);
25 };
26
27 TEST_VIEW(AutofillPopUpButtonTest, button_)
28
29 // Test invalid, mostly to ensure nothing leaks or crashes.
30 TEST_F(AutofillPopUpButtonTest, DisplayWithInvalid) {
31 [button_ setInvalid:YES];
32 [button_ display];
33 [button_ setInvalid:NO];
34 [button_ display];
35 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698