| OLD | NEW | 
|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/passwords/account_chooser_view_controller.h" | 5 #import "chrome/browser/ui/cocoa/passwords/account_chooser_view_controller.h" | 
| 6 | 6 | 
| 7 #include <utility> | 7 #include <utility> | 
| 8 | 8 | 
| 9 #include <Carbon/Carbon.h> | 9 #include <Carbon/Carbon.h> | 
| 10 | 10 | 
| 11 #include "base/mac/foundation_util.h" | 11 #include "base/mac/foundation_util.h" | 
| 12 #include "base/mac/scoped_nsobject.h" | 12 #include "base/mac/scoped_nsobject.h" | 
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" | 
| 14 #include "base/strings/sys_string_conversions.h" | 14 #include "base/strings/sys_string_conversions.h" | 
| 15 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" | 
| 16 #include "chrome/browser/ui/cocoa/cocoa_test_helper.h" |  | 
| 17 #import "chrome/browser/ui/cocoa/passwords/account_avatar_fetcher_manager.h" | 16 #import "chrome/browser/ui/cocoa/passwords/account_avatar_fetcher_manager.h" | 
| 18 #import "chrome/browser/ui/cocoa/passwords/account_chooser_view_controller.h" | 17 #import "chrome/browser/ui/cocoa/passwords/account_chooser_view_controller.h" | 
| 19 #import "chrome/browser/ui/cocoa/passwords/credential_item_button.h" | 18 #import "chrome/browser/ui/cocoa/passwords/credential_item_button.h" | 
|  | 19 #include "chrome/browser/ui/cocoa/test/cocoa_test_helper.h" | 
| 20 #include "chrome/browser/ui/passwords/password_dialog_controller_mock.h" | 20 #include "chrome/browser/ui/passwords/password_dialog_controller_mock.h" | 
| 21 #include "components/autofill/core/common/password_form.h" | 21 #include "components/autofill/core/common/password_form.h" | 
| 22 #include "testing/gmock/include/gmock/gmock.h" | 22 #include "testing/gmock/include/gmock/gmock.h" | 
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" | 
| 24 #include "testing/gtest_mac.h" | 24 #include "testing/gtest_mac.h" | 
| 25 #import "ui/events/test/cocoa_test_event_utils.h" | 25 #import "ui/events/test/cocoa_test_event_utils.h" | 
| 26 #include "url/gurl.h" | 26 #include "url/gurl.h" | 
| 27 #include "url/origin.h" | 27 #include "url/origin.h" | 
| 28 | 28 | 
| 29 @interface AccountAvatarFetcherTestManager : AccountAvatarFetcherManager { | 29 @interface AccountAvatarFetcherTestManager : AccountAvatarFetcherManager { | 
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 236   PasswordDialogController::FormsVector local_forms; | 236   PasswordDialogController::FormsVector local_forms; | 
| 237   local_forms.push_back(Credential("pizza")); | 237   local_forms.push_back(Credential("pizza")); | 
| 238   SetUpAccountChooser(&local_forms); | 238   SetUpAccountChooser(&local_forms); | 
| 239   EXPECT_CALL(*this, OnPerformClose()); | 239   EXPECT_CALL(*this, OnPerformClose()); | 
| 240   [[view_controller() view] | 240   [[view_controller() view] | 
| 241       performKeyEquivalent:cocoa_test_event_utils::KeyEventWithKeyCode( | 241       performKeyEquivalent:cocoa_test_event_utils::KeyEventWithKeyCode( | 
| 242                                kVK_Escape, '\e', NSKeyDown, 0)]; | 242                                kVK_Escape, '\e', NSKeyDown, 0)]; | 
| 243 } | 243 } | 
| 244 | 244 | 
| 245 }  // namespace | 245 }  // namespace | 
| OLD | NEW | 
|---|