| 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" |  | 
| 11 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h" | 10 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h" | 
| 12 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h" | 11 #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" | 12 #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" | 13 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_unittest_h
     elper.h" | 
| 15 #import "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h" | 14 #import "chrome/browser/ui/cocoa/location_bar/location_bar_decoration.h" | 
|  | 15 #import "chrome/browser/ui/cocoa/test/cocoa_test_helper.h" | 
| 16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" | 
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" | 
| 18 #import "testing/gtest_mac.h" | 18 #import "testing/gtest_mac.h" | 
| 19 #include "testing/platform_test.h" | 19 #include "testing/platform_test.h" | 
| 20 #include "ui/base/cocoa/cocoa_base_utils.h" | 20 #include "ui/base/cocoa/cocoa_base_utils.h" | 
| 21 | 21 | 
| 22 using ::testing::A; | 22 using ::testing::A; | 
| 23 using ::testing::InSequence; | 23 using ::testing::InSequence; | 
| 24 using ::testing::Return; | 24 using ::testing::Return; | 
| 25 using ::testing::ReturnArg; | 25 using ::testing::ReturnArg; | 
| (...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 924   base::scoped_nsobject<AutocompleteTextField> pin([field_ retain]); | 924   base::scoped_nsobject<AutocompleteTextField> pin([field_ retain]); | 
| 925   [field_ removeFromSuperview]; | 925   [field_ removeFromSuperview]; | 
| 926   [test_window() resignKeyWindow]; | 926   [test_window() resignKeyWindow]; | 
| 927 | 927 | 
| 928   [[test_window() contentView] addSubview:field_]; | 928   [[test_window() contentView] addSubview:field_]; | 
| 929   EXPECT_CALL(field_observer_, ClosePopup()); | 929   EXPECT_CALL(field_observer_, ClosePopup()); | 
| 930   [test_window() resignKeyWindow]; | 930   [test_window() resignKeyWindow]; | 
| 931 } | 931 } | 
| 932 | 932 | 
| 933 }  // namespace | 933 }  // namespace | 
| OLD | NEW | 
|---|