| 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
|
| index 2ddccecfc17be367d3366eaabfca857e9d519f26..84b4473c517f533b7753c6e42f966abac7f5d030 100644
|
| --- a/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h
|
| +++ b/chrome/browser/chromeos/policy/stub_enterprise_install_attributes.h
|
| @@ -29,6 +29,16 @@ class StubEnterpriseInstallAttributes : public EnterpriseInstallAttributes {
|
| 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_
|
|
|