| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <ApplicationServices/ApplicationServices.h> | 5 #import <ApplicationServices/ApplicationServices.h> |
| 6 #import <Cocoa/Cocoa.h> | 6 #import <Cocoa/Cocoa.h> |
| 7 | 7 |
| 8 #include "base/mac/foundation_util.h" | 8 #include "base/mac/foundation_util.h" |
| 9 #include "base/mac/scoped_nsobject.h" | 9 #include "base/mac/scoped_nsobject.h" |
| 10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" | 10 #import "chrome/browser/ui/cocoa/cocoa_test_helper.h" |
| 11 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h" | 11 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h" |
| 12 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h" | 12 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h" |
| 13 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h" | 13 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h" |
| 14 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_h
elper.h" | 14 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_h
elper.h" |
| 15 #import "chrome/browser/ui/cocoa/location_bar/button_decoration.h" | 15 #import "chrome/browser/ui/cocoa/location_bar/button_decoration.h" |
| 16 #import "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h" | 16 #import "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h" |
| 17 #include "grit/theme_resources.h" | 17 #include "grit/theme_resources.h" |
| 18 #include "testing/gmock/include/gmock/gmock.h" | 18 #include "testing/gmock/include/gmock/gmock.h" |
| 19 #include "testing/gtest/include/gtest/gtest.h" | 19 #include "testing/gtest/include/gtest/gtest.h" |
| 20 #import "testing/gtest_mac.h" | 20 #import "testing/gtest_mac.h" |
| 21 #include "testing/platform_test.h" | 21 #include "testing/platform_test.h" |
| 22 #include "ui/base/resource/resource_bundle.h" | |
| 23 | 22 |
| 24 using ::testing::A; | 23 using ::testing::A; |
| 25 using ::testing::InSequence; | 24 using ::testing::InSequence; |
| 26 using ::testing::Return; | 25 using ::testing::Return; |
| 27 using ::testing::ReturnArg; | 26 using ::testing::ReturnArg; |
| 28 using ::testing::StrictMock; | 27 using ::testing::StrictMock; |
| 29 using ::testing::_; | 28 using ::testing::_; |
| 30 | 29 |
| 31 namespace { | 30 namespace { |
| 32 | 31 |
| (...skipping 861 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 base::scoped_nsobject<AutocompleteTextField> pin([field_ retain]); | 893 base::scoped_nsobject<AutocompleteTextField> pin([field_ retain]); |
| 895 [field_ removeFromSuperview]; | 894 [field_ removeFromSuperview]; |
| 896 [test_window() resignKeyWindow]; | 895 [test_window() resignKeyWindow]; |
| 897 | 896 |
| 898 [[test_window() contentView] addSubview:field_]; | 897 [[test_window() contentView] addSubview:field_]; |
| 899 EXPECT_CALL(field_observer_, ClosePopup()); | 898 EXPECT_CALL(field_observer_, ClosePopup()); |
| 900 [test_window() resignKeyWindow]; | 899 [test_window() resignKeyWindow]; |
| 901 } | 900 } |
| 902 | 901 |
| 903 } // namespace | 902 } // namespace |
| OLD | NEW |