OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/cocoa/autocomplete_text_field_editor.h" | 5 #import "chrome/browser/cocoa/autocomplete_text_field_editor.h" |
6 | 6 |
7 #include "base/scoped_nsobject.h" | 7 #include "base/scoped_nsobject.h" |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 #include "chrome/app/chrome_dll_resource.h" // IDC_* | 10 #include "chrome/app/chrome_dll_resource.h" // IDC_* |
11 #import "chrome/browser/cocoa/autocomplete_text_field_unittest_helper.h" | 11 #import "chrome/browser/cocoa/autocomplete_text_field_unittest_helper.h" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 NSArray* items = [menu itemArray]; | 191 NSArray* items = [menu itemArray]; |
192 ASSERT_EQ([items count], 3U); | 192 ASSERT_EQ([items count], 3U); |
193 // TODO(shess): Check the titles, too? | 193 // TODO(shess): Check the titles, too? |
194 NSUInteger i = 0; // Use an index to make future changes easier. | 194 NSUInteger i = 0; // Use an index to make future changes easier. |
195 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(cut:)); | 195 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(cut:)); |
196 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(copy:)); | 196 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(copy:)); |
197 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(paste:)); | 197 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(paste:)); |
198 } | 198 } |
199 | 199 |
200 } // namespace | 200 } // namespace |
OLD | NEW |