OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #import "base/mac/cocoa_protocols.h" | |
8 #include "base/memory/scoped_nsobject.h" | 7 #include "base/memory/scoped_nsobject.h" |
9 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field.h" | 8 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field.h" |
10 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field_cell.h" | 9 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field_cell.h" |
11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "testing/platform_test.h" | 12 #include "testing/platform_test.h" |
14 | 13 |
15 namespace { | 14 namespace { |
16 | 15 |
17 // Width of the field so that we don't have to ask |field_| for it all | 16 // Width of the field so that we don't have to ask |field_| for it all |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 // Test display of various cell configurations. | 72 // Test display of various cell configurations. |
74 FindBarTextFieldCell* cell = [field_ findBarTextFieldCell]; | 73 FindBarTextFieldCell* cell = [field_ findBarTextFieldCell]; |
75 [cell setActiveMatch:4 of:5]; | 74 [cell setActiveMatch:4 of:5]; |
76 [field_ display]; | 75 [field_ display]; |
77 | 76 |
78 [cell clearResults]; | 77 [cell clearResults]; |
79 [field_ display]; | 78 [field_ display]; |
80 } | 79 } |
81 | 80 |
82 } // namespace | 81 } // namespace |
OLD | NEW |