| // Copyright 2021 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROME_BROWSER_ASH_BOREALIS_TESTING_FEATURES_H_ |
| #define CHROME_BROWSER_ASH_BOREALIS_TESTING_FEATURES_H_ |
| |
| #include "base/memory/raw_ptr.h" |
| #include "base/test/scoped_feature_list.h" |
| #include "chrome/browser/ash/login/users/fake_chrome_user_manager.h" |
| #include "components/user_manager/scoped_user_manager.h" |
| |
| class Profile; |
| |
| namespace borealis { |
| |
| void AllowBorealis(Profile* profile, |
| base::test::ScopedFeatureList* features, |
| ash::FakeChromeUserManager* user_manager, |
| bool also_enable); |
| |
| class ScopedAllowBorealis { |
| public: |
| ScopedAllowBorealis(Profile* profile, bool also_enable); |
| ~ScopedAllowBorealis(); |
| |
| private: |
| user_manager::TypedScopedUserManager<ash::FakeChromeUserManager> |
| fake_user_manager_; |
| raw_ptr<Profile> profile_; |
| base::test::ScopedFeatureList features_; |
| }; |
| |
| } // namespace borealis |
| |
| #endif // CHROME_BROWSER_ASH_BOREALIS_TESTING_FEATURES_H_ |