Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(790)

Side by Side Diff: chrome/browser/ui/cocoa/passwords/base_passwords_controller_test.mm

Issue 1637043002: Don't try to use ManagePasswordsBubbleModel if the password bubble was closed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/ui/cocoa/passwords/base_passwords_controller_test.h" 5 #include "chrome/browser/ui/cocoa/passwords/base_passwords_controller_test.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/password_manager/password_store_factory.h" 8 #include "chrome/browser/password_manager/password_store_factory.h"
9 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h" 9 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h"
10 #include "components/password_manager/core/browser/mock_password_store.h" 10 #include "components/password_manager/core/browser/mock_password_store.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 ASSERT_TRUE(testing::Mock::VerifyAndClearExpectations(ui_controller_)); 103 ASSERT_TRUE(testing::Mock::VerifyAndClearExpectations(ui_controller_));
104 } 104 }
105 105
106 ManagePasswordsBubbleModel::DisplayReason 106 ManagePasswordsBubbleModel::DisplayReason
107 ManagePasswordsControllerTest::GetDisplayReason() const { 107 ManagePasswordsControllerTest::GetDisplayReason() const {
108 return ManagePasswordsBubbleModel::AUTOMATIC; 108 return ManagePasswordsBubbleModel::AUTOMATIC;
109 } 109 }
110 110
111 @implementation ContentViewDelegateMock 111 @implementation ContentViewDelegateMock
112 112
113 @synthesize model = _model;
113 @synthesize dismissed = _dismissed; 114 @synthesize dismissed = _dismissed;
114 115
115 - (void)viewShouldDismiss { 116 - (void)viewShouldDismiss {
116 _dismissed = YES; 117 _dismissed = YES;
117 } 118 }
118 119
119 @end 120 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698