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

Side by Side Diff: chrome/browser/chromeos/policy/device_policy_cros_browser_test.h

Issue 2957983002: Remove pointless InProcessBrowserTest calls. (Closed)
Patch Set: build Created 3 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CHROMEOS_POLICY_DEVICE_POLICY_CROS_BROWSER_TEST_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_POLICY_CROS_BROWSER_TEST_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_POLICY_CROS_BROWSER_TEST_H_ 6 #define CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_POLICY_CROS_BROWSER_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 DISALLOW_COPY_AND_ASSIGN(DevicePolicyCrosTestHelper); 46 DISALLOW_COPY_AND_ASSIGN(DevicePolicyCrosTestHelper);
47 }; 47 };
48 48
49 // Used to test Device policy changes in Chrome OS. 49 // Used to test Device policy changes in Chrome OS.
50 class DevicePolicyCrosBrowserTest : public InProcessBrowserTest { 50 class DevicePolicyCrosBrowserTest : public InProcessBrowserTest {
51 protected: 51 protected:
52 DevicePolicyCrosBrowserTest(); 52 DevicePolicyCrosBrowserTest();
53 ~DevicePolicyCrosBrowserTest() override; 53 ~DevicePolicyCrosBrowserTest() override;
54 54
55 void SetUpInProcessBrowserTestFixture() override; 55 void SetUpInProcessBrowserTestFixture() override;
56 void TearDownInProcessBrowserTestFixture() override;
57 56
58 virtual void MarkOwnership(); 57 virtual void MarkOwnership();
59 58
60 // Marks the device as enterprise-owned. Must be called to make device 59 // Marks the device as enterprise-owned. Must be called to make device
61 // policies apply Chrome-wide. If this is not called, device policies will 60 // policies apply Chrome-wide. If this is not called, device policies will
62 // affect CrosSettings only. 61 // affect CrosSettings only.
63 void MarkAsEnterpriseOwned(); 62 void MarkAsEnterpriseOwned();
64 63
65 // Writes the owner key to disk. To be called before installing a policy. 64 // Writes the owner key to disk. To be called before installing a policy.
66 void InstallOwnerKey(); 65 void InstallOwnerKey();
(...skipping 18 matching lines...) Expand all
85 // FakeDBusThreadManager uses FakeSessionManagerClient. 84 // FakeDBusThreadManager uses FakeSessionManagerClient.
86 std::unique_ptr<chromeos::DBusThreadManagerSetter> dbus_setter_; 85 std::unique_ptr<chromeos::DBusThreadManagerSetter> dbus_setter_;
87 chromeos::FakeSessionManagerClient* fake_session_manager_client_; 86 chromeos::FakeSessionManagerClient* fake_session_manager_client_;
88 87
89 DISALLOW_COPY_AND_ASSIGN(DevicePolicyCrosBrowserTest); 88 DISALLOW_COPY_AND_ASSIGN(DevicePolicyCrosBrowserTest);
90 }; 89 };
91 90
92 } // namespace policy 91 } // namespace policy
93 92
94 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_POLICY_CROS_BROWSER_TEST_H_ 93 #endif // CHROME_BROWSER_CHROMEOS_POLICY_DEVICE_POLICY_CROS_BROWSER_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698