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

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

Issue 18355002: Move HyperlinkButtonCell to /ui/base/cocoa/controls. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: helpful comment 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.h" 5 #import "chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.h"
6 6
7 #import "chrome/browser/ui/cocoa/autofill/autofill_textfield.h" 7 #import "chrome/browser/ui/cocoa/autofill/autofill_textfield.h"
8 #import "chrome/browser/ui/cocoa/hyperlink_button_cell.h"
9 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
10 #import "ui/base/test/ui_cocoa_test_helper.h" 9 #import "ui/base/test/ui_cocoa_test_helper.h"
11 10
12 namespace { 11 namespace {
13 12
14 class AutofillSuggestionContainerTest : public ui::CocoaTest { 13 class AutofillSuggestionContainerTest : public ui::CocoaTest {
15 public: 14 public:
16 virtual void SetUp() { 15 virtual void SetUp() {
17 CocoaTest::SetUp(); 16 CocoaTest::SetUp();
18 container_.reset([[AutofillSuggestionContainer alloc] init]); 17 container_.reset([[AutofillSuggestionContainer alloc] init]);
(...skipping 22 matching lines...) Expand all
41 has_edit_field = true; 40 has_edit_field = true;
42 } else if ([view isKindOfClass:[NSTextField class]]) { 41 } else if ([view isKindOfClass:[NSTextField class]]) {
43 num_text_fields++; 42 num_text_fields++;
44 } 43 }
45 } 44 }
46 45
47 EXPECT_EQ(2, num_text_fields); 46 EXPECT_EQ(2, num_text_fields);
48 EXPECT_TRUE(has_edit_field); 47 EXPECT_TRUE(has_edit_field);
49 EXPECT_TRUE(has_icon); 48 EXPECT_TRUE(has_icon);
50 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698