#include "components/policy/core/common/cloud/machine_level_user_cloud_policy_store.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "components/policy/core/common/cloud/cloud_policy_constants.h"
#include "components/policy/core/common/cloud/cloud_policy_util.h"
#include "components/policy/core/common/cloud/mock_cloud_policy_store.h"
#include "components/policy/core/common/cloud/test/policy_builder.h"
#include "components/policy/core/common/policy_switches.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "base/logging.h"
_;
namespace policy {
namespace {
constexpr int kPublicKeyVersion = …;
}
class MachineLevelUserCloudPolicyStoreTest : public ::testing::Test { … };
TEST_F(MachineLevelUserCloudPolicyStoreTest, LoadWithoutDMToken) { … }
TEST_F(MachineLevelUserCloudPolicyStoreTest, LoadImmediatelyWithoutDMToken) { … }
TEST_F(MachineLevelUserCloudPolicyStoreTest, LoadWithNoFile) { … }
TEST_F(MachineLevelUserCloudPolicyStoreTest, StorePolicy) { … }
TEST_F(MachineLevelUserCloudPolicyStoreTest, StoreThenLoadPolicy) { … }
TEST_F(MachineLevelUserCloudPolicyStoreTest, LoadOlderExternalPolicies) { … }
TEST_F(MachineLevelUserCloudPolicyStoreTest, LoadRecentExternalPolicies) { … }
TEST_F(MachineLevelUserCloudPolicyStoreTest,
LoadExternalPoliciesAndRefreshKey) { … }
TEST_F(MachineLevelUserCloudPolicyStoreTest, LoadOnlyExternalPolicies) { … }
TEST_F(MachineLevelUserCloudPolicyStoreTest,
StoreAndLoadWithInvalidTokenPolicy) { … }
TEST_F(MachineLevelUserCloudPolicyStoreTest, KeyRotation) { … }
}