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

Side by Side Diff: chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.cc

Issue 848723002: Credential Manager API: Showing both local and federated logins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/passwords/manage_passwords_ui_controller_mock.h" 5 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller_mock.h"
6 6
7 #include "components/password_manager/content/common/credential_manager_types.h"
7 #include "content/public/browser/web_contents.h" 8 #include "content/public/browser/web_contents.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 ManagePasswordsUIControllerMock::ManagePasswordsUIControllerMock( 11 ManagePasswordsUIControllerMock::ManagePasswordsUIControllerMock(
11 content::WebContents* contents) 12 content::WebContents* contents)
12 : ManagePasswordsUIController(contents), 13 : ManagePasswordsUIController(contents),
13 navigated_to_settings_page_(false), 14 navigated_to_settings_page_(false),
14 saved_password_(false), 15 saved_password_(false),
15 never_saved_password_(false), 16 never_saved_password_(false),
16 choose_credential_(false) { 17 choose_credential_(false) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 54
54 void ManagePasswordsUIControllerMock::SavePasswordInternal() { 55 void ManagePasswordsUIControllerMock::SavePasswordInternal() {
55 saved_password_ = true; 56 saved_password_ = true;
56 } 57 }
57 58
58 void ManagePasswordsUIControllerMock::NeverSavePasswordInternal() { 59 void ManagePasswordsUIControllerMock::NeverSavePasswordInternal() {
59 never_saved_password_ = true; 60 never_saved_password_ = true;
60 } 61 }
61 62
62 void ManagePasswordsUIControllerMock::ChooseCredential( 63 void ManagePasswordsUIControllerMock::ChooseCredential(
63 bool was_chosen, 64 const autofill::PasswordForm& form,
64 const autofill::PasswordForm& form) { 65 password_manager::CredentialType form_type) {
65 EXPECT_FALSE(choose_credential_); 66 EXPECT_FALSE(choose_credential_);
66 choose_credential_ = true; 67 choose_credential_ = true;
67 } 68 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698