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

Unified Diff: chrome/browser/policy/device_management_backend_mock.h

Issue 9066005: Remove all old-style DeviceManagementService legacy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase. Created 8 years, 12 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/device_management_backend_mock.h
diff --git a/chrome/browser/policy/device_management_backend_mock.h b/chrome/browser/policy/device_management_backend_mock.h
deleted file mode 100644
index 2f3a179ee8aca2220e455bac991146ccbb0e40c3..0000000000000000000000000000000000000000
--- a/chrome/browser/policy/device_management_backend_mock.h
+++ /dev/null
@@ -1,63 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_MOCK_H_
-#define CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_MOCK_H_
-#pragma once
-
-#include "chrome/browser/policy/device_management_backend.h"
-#include "testing/gmock/include/gmock/gmock.h"
-
-namespace policy {
-
-// Mock classes for the various DeviceManagementBackend delegates that allow to
-// capture callbacks using gmock.
-class DeviceRegisterResponseDelegateMock
- : public DeviceManagementBackend::DeviceRegisterResponseDelegate {
- public:
- DeviceRegisterResponseDelegateMock();
- virtual ~DeviceRegisterResponseDelegateMock();
-
- MOCK_METHOD1(HandleRegisterResponse,
- void(const enterprise_management::DeviceRegisterResponse&));
- MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error));
-};
-
-class DeviceUnregisterResponseDelegateMock
- : public DeviceManagementBackend::DeviceUnregisterResponseDelegate {
- public:
- DeviceUnregisterResponseDelegateMock();
- virtual ~DeviceUnregisterResponseDelegateMock();
-
- MOCK_METHOD1(HandleUnregisterResponse,
- void(const enterprise_management::DeviceUnregisterResponse&));
- MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error));
-};
-
-class DevicePolicyResponseDelegateMock
- : public DeviceManagementBackend::DevicePolicyResponseDelegate {
- public:
- DevicePolicyResponseDelegateMock();
- virtual ~DevicePolicyResponseDelegateMock();
-
- MOCK_METHOD1(HandlePolicyResponse,
- void(const enterprise_management::DevicePolicyResponse&));
- MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error));
-};
-
-class DeviceAutoEnrollmentResponseDelegateMock
- : public DeviceManagementBackend::DeviceAutoEnrollmentResponseDelegate {
- public:
- DeviceAutoEnrollmentResponseDelegateMock();
- virtual ~DeviceAutoEnrollmentResponseDelegateMock();
-
- MOCK_METHOD1(
- HandleAutoEnrollmentResponse,
- void(const enterprise_management::DeviceAutoEnrollmentResponse&));
- MOCK_METHOD1(OnError, void(DeviceManagementBackend::ErrorCode error));
-};
-
-} // namespace policy
-
-#endif // CHROME_BROWSER_POLICY_DEVICE_MANAGEMENT_BACKEND_MOCK_H_
« no previous file with comments | « chrome/browser/policy/device_management_backend_impl.cc ('k') | chrome/browser/policy/device_management_backend_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698