| Index: chrome/browser/policy/mock_device_management_backend.h
|
| diff --git a/chrome/browser/policy/mock_device_management_backend.h b/chrome/browser/policy/mock_device_management_backend.h
|
| index f0612f408cc20fb566d71c6e3ac2d6b26f4752e3..45a4b43c076bcd3ad2fb133cc686bb008ce30ddd 100644
|
| --- a/chrome/browser/policy/mock_device_management_backend.h
|
| +++ b/chrome/browser/policy/mock_device_management_backend.h
|
| @@ -11,8 +11,8 @@
|
|
|
| #include "base/values.h"
|
| #include "chrome/browser/policy/device_management_backend.h"
|
| -#include "testing/gtest/include/gtest/gtest.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| +#include "testing/gtest/include/gtest/gtest.h"
|
|
|
| namespace policy {
|
|
|
| @@ -47,6 +47,8 @@ class MockDeviceManagementBackend
|
| void AllShouldSucceed();
|
| void AllShouldFail();
|
| void UnmanagedDevice();
|
| + void RegisterFailsOncePolicyFailsTwice();
|
| + void AllWorksFirstPolicyFailsLater();
|
|
|
| void SimulateSuccessfulRegisterRequest(
|
| const std::string& auth_token,
|
| @@ -82,6 +84,13 @@ class MockDeviceManagementBackend
|
| em::DevicePolicyResponse policy_response_;
|
| em::DevicePolicySetting* policy_setting_;
|
|
|
| + bool policy_works_later_;
|
| + int policy_remaining_fail_count_;
|
| + bool register_works_later_;
|
| + int register_remaining_fail_count_;
|
| + bool policy_fails_later_;
|
| + int policy_remaining_success_count_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(MockDeviceManagementBackend);
|
| };
|
|
|
|
|