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

Side by Side Diff: chromeos/cryptohome/mock_async_method_caller.cc

Issue 1165323004: We should use UserID object to identify users instead of username. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 (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 #include "chromeos/cryptohome/mock_async_method_caller.h" 5 #include "chromeos/cryptohome/mock_async_method_caller.h"
6 6
7 #include "components/user_manager/user_id.h"
8
7 using ::testing::Invoke; 9 using ::testing::Invoke;
8 using ::testing::WithArgs; 10 using ::testing::WithArgs;
9 using ::testing::_; 11 using ::testing::_;
10 12
11 namespace cryptohome { 13 namespace cryptohome {
12 14
13 const char MockAsyncMethodCaller::kFakeAttestationEnrollRequest[] = "enrollreq"; 15 const char MockAsyncMethodCaller::kFakeAttestationEnrollRequest[] = "enrollreq";
14 const char MockAsyncMethodCaller::kFakeAttestationCertRequest[] = "certreq"; 16 const char MockAsyncMethodCaller::kFakeAttestationCertRequest[] = "certreq";
15 const char MockAsyncMethodCaller::kFakeAttestationCert[] = "cert"; 17 const char MockAsyncMethodCaller::kFakeAttestationCert[] = "cert";
16 const char MockAsyncMethodCaller::kFakeSanitizedUsername[] = "01234567890ABC"; 18 const char MockAsyncMethodCaller::kFakeSanitizedUsername[] = "01234567890ABC";
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 const DataCallback& callback) { 98 const DataCallback& callback) {
97 callback.Run(success_, kFakeSanitizedUsername); 99 callback.Run(success_, kFakeSanitizedUsername);
98 } 100 }
99 101
100 void MockAsyncMethodCaller::FakeEnterpriseChallenge( 102 void MockAsyncMethodCaller::FakeEnterpriseChallenge(
101 const DataCallback& callback) { 103 const DataCallback& callback) {
102 callback.Run(success_, kFakeChallengeResponse); 104 callback.Run(success_, kFakeChallengeResponse);
103 } 105 }
104 106
105 } // namespace cryptohome 107 } // namespace cryptohome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698