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 "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h" | 5 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h" |
6 | 6 |
| 7 #include <memory> |
| 8 |
7 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
10 #include "chrome/app/chrome_command_ids.h" // IDC_* | 11 #include "chrome/app/chrome_command_ids.h" // IDC_* |
11 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 12 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
12 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_h
elper.h" | 13 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_h
elper.h" |
13 #include "chrome/grit/generated_resources.h" | 14 #include "chrome/grit/generated_resources.h" |
14 #include "testing/gmock/include/gmock/gmock-matchers.h" | 15 #include "testing/gmock/include/gmock/gmock-matchers.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 #import "testing/gtest_mac.h" | 17 #import "testing/gtest_mac.h" |
17 #include "testing/platform_test.h" | 18 #include "testing/platform_test.h" |
18 #import "third_party/ocmock/OCMock/OCMock.h" | 19 #import "third_party/ocmock/OCMock/OCMock.h" |
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 for (NSUInteger i = 0; i < [items count]; ++i) { | 349 for (NSUInteger i = 0; i < [items count]; ++i) { |
349 NSMenuItem* item = [items objectAtIndex:i]; | 350 NSMenuItem* item = [items objectAtIndex:i]; |
350 if ([item action] == @selector(showURL:)) { | 351 if ([item action] == @selector(showURL:)) { |
351 EXPECT_TRUE([editor_ validateMenuItem:item]); | 352 EXPECT_TRUE([editor_ validateMenuItem:item]); |
352 break; | 353 break; |
353 } | 354 } |
354 } | 355 } |
355 } | 356 } |
356 | 357 |
357 } // namespace | 358 } // namespace |
OLD | NEW |