OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |