OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_POLICY_MOCK_DEVICE_MANAGEMENT_BACKEND_H_ | 5 #ifndef CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_BACKEND_H_ |
6 #define CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_BACKEND_H_ | 6 #define CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_BACKEND_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | |
10 #include <string> | 9 #include <string> |
11 | 10 |
12 #include "base/time.h" | 11 #include "base/time.h" |
13 #include "base/values.h" | |
14 #include "chrome/browser/policy/device_management_backend.h" | 12 #include "chrome/browser/policy/device_management_backend.h" |
15 #include "chrome/browser/policy/proto/cloud_policy.pb.h" | 13 #include "chrome/browser/policy/proto/cloud_policy.pb.h" |
16 #include "chrome/browser/policy/proto/device_management_backend.pb.h" | 14 #include "chrome/browser/policy/proto/device_management_backend.pb.h" |
17 #include "chrome/browser/policy/proto/device_management_constants.h" | 15 #include "chrome/browser/policy/proto/device_management_constants.h" |
18 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
20 | 18 |
21 namespace policy { | 19 namespace policy { |
22 | 20 |
23 namespace em = enterprise_management; | 21 namespace em = enterprise_management; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 arg4->OnError(error); | 89 arg4->OnError(error); |
92 } | 90 } |
93 | 91 |
94 ACTION_P(MockDeviceManagementBackendFailPolicy, error) { | 92 ACTION_P(MockDeviceManagementBackendFailPolicy, error) { |
95 arg4->OnError(error); | 93 arg4->OnError(error); |
96 } | 94 } |
97 | 95 |
98 } // namespace policy | 96 } // namespace policy |
99 | 97 |
100 #endif // CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_BACKEND_H_ | 98 #endif // CHROME_BROWSER_POLICY_MOCK_DEVICE_MANAGEMENT_BACKEND_H_ |
OLD | NEW |