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

Side by Side Diff: chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_mock.h

Issue 2186623002: Minimal attestation-based enrollment flow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed achuithb's feedback. Created 4 years, 3 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 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER_MO CK_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER_MO CK_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER_MO CK_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER_MO CK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper. h" 10 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper. h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 15
16 class EnterpriseEnrollmentHelperImpl; 16 class EnterpriseEnrollmentHelperImpl;
17 17
18 // Mocks out EnterpriseEnrollmentHelper. 18 // Mocks out EnterpriseEnrollmentHelper.
19 class EnterpriseEnrollmentHelperMock : public EnterpriseEnrollmentHelper { 19 class EnterpriseEnrollmentHelperMock : public EnterpriseEnrollmentHelper {
20 public: 20 public:
21 explicit EnterpriseEnrollmentHelperMock( 21 explicit EnterpriseEnrollmentHelperMock(
22 EnrollmentStatusConsumer* status_consumer); 22 EnrollmentStatusConsumer* status_consumer);
23 ~EnterpriseEnrollmentHelperMock() override; 23 ~EnterpriseEnrollmentHelperMock() override;
24 24
25 EnrollmentStatusConsumer* status_consumer(); 25 EnrollmentStatusConsumer* status_consumer();
26 26
27 MOCK_METHOD2(EnrollUsingAuthCode, 27 MOCK_METHOD2(EnrollUsingAuthCode,
28 void(const std::string& auth_code, bool fetch_additional_token)); 28 void(const std::string& auth_code, bool fetch_additional_token));
29 MOCK_METHOD1(EnrollUsingToken, void(const std::string& token)); 29 MOCK_METHOD1(EnrollUsingToken, void(const std::string& token));
30 MOCK_METHOD0(EnrollUsingAttestation, void());
30 MOCK_METHOD0(GetDeviceAttributeUpdatePermission, void()); 31 MOCK_METHOD0(GetDeviceAttributeUpdatePermission, void());
31 MOCK_METHOD2(UpdateDeviceAttributes, 32 MOCK_METHOD2(UpdateDeviceAttributes,
32 void(const std::string& asset_id, const std::string& location)); 33 void(const std::string& asset_id, const std::string& location));
33 MOCK_METHOD1(ClearAuth, void(const base::Closure& callback)); 34 MOCK_METHOD1(ClearAuth, void(const base::Closure& callback));
34 }; 35 };
35 36
36 } // namespace chromeos 37 } // namespace chromeos
37 38
38 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER _MOCK_H_ 39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER _MOCK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698