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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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;
17
18 // Mocks out EnterpriseEnrollmentHelper. 16 // Mocks out EnterpriseEnrollmentHelper.
19 class EnterpriseEnrollmentHelperMock : public EnterpriseEnrollmentHelper { 17 class EnterpriseEnrollmentHelperMock : public EnterpriseEnrollmentHelper {
20 public: 18 public:
21 explicit EnterpriseEnrollmentHelperMock( 19 explicit EnterpriseEnrollmentHelperMock(
22 EnrollmentStatusConsumer* status_consumer); 20 EnrollmentStatusConsumer* status_consumer);
23 ~EnterpriseEnrollmentHelperMock() override; 21 ~EnterpriseEnrollmentHelperMock() override;
24 22
25 EnrollmentStatusConsumer* status_consumer(); 23 EnrollmentStatusConsumer* status_consumer();
26 24
27 MOCK_METHOD2(EnrollUsingAuthCode, 25 MOCK_METHOD2(EnrollUsingAuthCode,
28 void(const std::string& auth_code, bool fetch_additional_token)); 26 void(const std::string& auth_code, bool fetch_additional_token));
29 MOCK_METHOD1(EnrollUsingToken, void(const std::string& token)); 27 MOCK_METHOD1(EnrollUsingToken, void(const std::string& token));
30 MOCK_METHOD0(EnrollUsingAttestation, void()); 28 MOCK_METHOD0(EnrollUsingAttestation, void());
31 MOCK_METHOD0(GetDeviceAttributeUpdatePermission, void()); 29 MOCK_METHOD0(GetDeviceAttributeUpdatePermission, void());
32 MOCK_METHOD2(UpdateDeviceAttributes, 30 MOCK_METHOD2(UpdateDeviceAttributes,
33 void(const std::string& asset_id, const std::string& location)); 31 void(const std::string& asset_id, const std::string& location));
34 MOCK_METHOD1(ClearAuth, void(const base::Closure& callback)); 32 MOCK_METHOD1(ClearAuth, void(const base::Closure& callback));
35 }; 33 };
36 34
37 } // namespace chromeos 35 } // namespace chromeos
38 36
39 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER _MOCK_H_ 37 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_ENROLLMENT_ENTERPRISE_ENROLLMENT_HELPER _MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/enrollment/enterprise_enrollment_helper_impl.h ('k') | chrome/browser/chromeos/login/helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698