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

Side by Side Diff: components/password_manager/core/browser/credential_manager_logger_unittest.cc

Issue 2895243002: Rename requireUserMediation to preventSilentAccess in the CM API. (Closed)
Patch Set: merge Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/password_manager/core/browser/credential_manager_logger.h" 5 #include "components/password_manager/core/browser/credential_manager_logger.h"
6 6
7 #include "components/password_manager/core/browser/stub_log_manager.h" 7 #include "components/password_manager/core/browser/stub_log_manager.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 logger().LogSendCredential(GURL(kSiteOrigin), 63 logger().LogSendCredential(GURL(kSiteOrigin),
64 CredentialType::CREDENTIAL_TYPE_PASSWORD); 64 CredentialType::CREDENTIAL_TYPE_PASSWORD);
65 } 65 }
66 66
67 TEST_F(CredentialManagerLoggerTest, LogStoreCredential) { 67 TEST_F(CredentialManagerLoggerTest, LogStoreCredential) {
68 EXPECT_CALL(log_manager(), LogSavePasswordProgress(HasSubstr(kSiteOrigin))); 68 EXPECT_CALL(log_manager(), LogSavePasswordProgress(HasSubstr(kSiteOrigin)));
69 logger().LogStoreCredential(GURL(kSiteOrigin), 69 logger().LogStoreCredential(GURL(kSiteOrigin),
70 CredentialType::CREDENTIAL_TYPE_PASSWORD); 70 CredentialType::CREDENTIAL_TYPE_PASSWORD);
71 } 71 }
72 72
73 TEST_F(CredentialManagerLoggerTest, LogRequireUserMediation) { 73 TEST_F(CredentialManagerLoggerTest, LogPreventSilentAccess) {
74 EXPECT_CALL(log_manager(), LogSavePasswordProgress(HasSubstr(kSiteOrigin))); 74 EXPECT_CALL(log_manager(), LogSavePasswordProgress(HasSubstr(kSiteOrigin)));
75 logger().LogRequireUserMediation(GURL(kSiteOrigin)); 75 logger().LogPreventSilentAccess(GURL(kSiteOrigin));
76 } 76 }
77 77
78 } // namespace 78 } // namespace
79 } // namespace password_manager 79 } // namespace password_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698