#include "chrome/browser/enterprise/connectors/test/browser/management_context_mixin_browser.h"
#include "build/branding_buildflags.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/enterprise/connectors/test/deep_scanning_test_utils.h"
#include "chrome/browser/enterprise/connectors/test/test_constants.h"
#include "chrome/browser/policy/chrome_browser_policy_connector.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/enterprise/browser/controller/fake_browser_dm_token_storage.h"
#include "components/enterprise/browser/enterprise_switches.h"
#include "components/policy/core/common/cloud/machine_level_user_cloud_policy_manager.h"
#include "components/policy/core/common/cloud/user_cloud_policy_manager.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_types.h"
#include "components/policy/proto/device_management_backend.pb.h"
namespace enterprise_connectors::test {
ManagementContextMixinBrowser::ManagementContextMixinBrowser(
InProcessBrowserTestMixinHost* host,
InProcessBrowserTest* test_base,
ManagementContext management_context)
: … { … }
ManagementContextMixinBrowser::~ManagementContextMixinBrowser() = default;
void ManagementContextMixinBrowser::ManageCloudUser() { … }
void ManagementContextMixinBrowser::SetUpOnMainThread() { … }
void ManagementContextMixinBrowser::SetUpInProcessBrowserTestFixture() { … }
#if !BUILDFLAG(GOOGLE_CHROME_BRANDING)
void ManagementContextMixinBrowser::SetUpDefaultCommandLine(
base::CommandLine* command_line) { … }
#endif
void ManagementContextMixinBrowser::ManageCloudMachine() { … }
void ManagementContextMixinBrowser::SetCloudMachinePolicies(
base::flat_map<std::string, std::optional<base::Value>> policy_entries) { … }
}