OLD | NEW |
1 // Copyright (c) 2010 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/location_bar/autocomplete_text_field_editor.h" | 5 #import "chrome/browser/cocoa/location_bar/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_command_ids.h" // IDC_* |
11 #import "chrome/browser/cocoa/cocoa_test_helper.h" | 11 #import "chrome/browser/cocoa/cocoa_test_helper.h" |
12 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field_unittest_help
er.h" | 12 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field_unittest_help
er.h" |
13 #import "chrome/browser/cocoa/test_event_utils.h" | 13 #import "chrome/browser/cocoa/test_event_utils.h" |
14 #include "grit/generated_resources.h" | 14 #include "grit/generated_resources.h" |
15 #include "testing/gmock/include/gmock/gmock-matchers.h" | 15 #include "testing/gmock/include/gmock/gmock-matchers.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 #import "testing/gtest_mac.h" | 17 #import "testing/gtest_mac.h" |
18 #include "testing/platform_test.h" | 18 #include "testing/platform_test.h" |
19 #import "third_party/ocmock/OCMock/OCMock.h" | 19 #import "third_party/ocmock/OCMock/OCMock.h" |
20 | 20 |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 NSArray* items = [menu itemArray]; | 285 NSArray* items = [menu itemArray]; |
286 ASSERT_EQ([items count], 3U); | 286 ASSERT_EQ([items count], 3U); |
287 // TODO(shess): Check the titles, too? | 287 // TODO(shess): Check the titles, too? |
288 NSUInteger i = 0; // Use an index to make future changes easier. | 288 NSUInteger i = 0; // Use an index to make future changes easier. |
289 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(cut:)); | 289 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(cut:)); |
290 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(copy:)); | 290 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(copy:)); |
291 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(paste:)); | 291 EXPECT_EQ([[items objectAtIndex:i++] action], @selector(paste:)); |
292 } | 292 } |
293 | 293 |
294 } // namespace | 294 } // namespace |
OLD | NEW |