| Index: chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h
|
| diff --git a/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h b/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h
|
| deleted file mode 100644
|
| index fc418b01654ae356facaabda8ce7c9435cb4333b..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h
|
| +++ /dev/null
|
| @@ -1,44 +0,0 @@
|
| -// Copyright (c) 2013 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_CHROMEOS_POLICY_STUB_ENTERPRISE_INSTALL_ATTRIBUTES_H_
|
| -#define CHROME_BROWSER_CHROMEOS_POLICY_STUB_ENTERPRISE_INSTALL_ATTRIBUTES_H_
|
| -
|
| -#include <string>
|
| -
|
| -#include "base/macros.h"
|
| -#include "chrome/browser/chromeos/policy/enterprise_install_attributes.h"
|
| -#include "components/policy/core/common/cloud/cloud_policy_constants.h"
|
| -
|
| -namespace policy {
|
| -
|
| -// This class allows tests to override specific values for easier testing.
|
| -// To make IsEnterpriseDevice() return true, set a non-empty registration
|
| -// user.
|
| -class StubEnterpriseInstallAttributes : public EnterpriseInstallAttributes {
|
| - public:
|
| - StubEnterpriseInstallAttributes();
|
| -
|
| - void SetDomain(const std::string& domain);
|
| - void SetRegistrationUser(const std::string& user);
|
| - void SetDeviceId(const std::string& id);
|
| - void SetMode(DeviceMode mode);
|
| -
|
| - private:
|
| - DISALLOW_COPY_AND_ASSIGN(StubEnterpriseInstallAttributes);
|
| -};
|
| -
|
| -// Helper class to set enterprise install attributes in the scope of a test.
|
| -class ScopedStubEnterpriseInstallAttributes {
|
| - public:
|
| - ScopedStubEnterpriseInstallAttributes(const std::string& domain,
|
| - const std::string& registration_user,
|
| - const std::string& device_id,
|
| - DeviceMode mode);
|
| - ~ScopedStubEnterpriseInstallAttributes();
|
| -};
|
| -
|
| -} // namespace policy
|
| -
|
| -#endif // CHROME_BROWSER_CHROMEOS_POLICY_STUB_ENTERPRISE_INSTALL_ATTRIBUTES_H_
|
|
|