Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / chromeos / login / users / scoped_test_user_manager.h
blobec07d2cdc6a66c9586403b8bcfdb5148daee69e4
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_SCOPED_TEST_USER_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_SCOPED_TEST_USER_MANAGER_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
11 namespace chromeos {
13 class ChromeUserManager;
15 // Helper class for unit tests. Initializes the UserManager singleton on
16 // construction and tears it down again on destruction.
17 class ScopedTestUserManager {
18 public:
19 ScopedTestUserManager();
20 ~ScopedTestUserManager();
22 private:
23 scoped_ptr<ChromeUserManager> chrome_user_manager_;
25 DISALLOW_COPY_AND_ASSIGN(ScopedTestUserManager);
28 } // namespace chromeos
30 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_SCOPED_TEST_USER_MANAGER_H_