#include "components/policy/core/common/cloud/cloud_external_data_store.h"
#include <stddef.h>
#include <memory>
#include <optional>
#include "base/compiler_specific.h"
#include "base/files/scoped_temp_dir.h"
#include "base/test/test_simple_task_runner.h"
#include "components/policy/core/common/cloud/resource_cache.h"
#include "crypto/sha2.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace policy {
namespace {
const char kKey1[] = …;
const char kKey2[] = …;
const char kPolicy1[] = …;
const char kPolicy2[] = …;
std::string kPolicy1Key = …;
std::string kPolicy2Key = …;
const char kData1[] = …;
const char kData2[] = …;
const size_t kMaxSize = …;
}
class CloudExternalDataStoreTest : public testing::Test { … };
CloudExternalDataStoreTest::CloudExternalDataStoreTest()
: … { … }
void CloudExternalDataStoreTest::SetUp() { … }
TEST_F(CloudExternalDataStoreTest, StoreAndLoad) { … }
TEST_F(CloudExternalDataStoreTest, StoreTooLargeAndLoad) { … }
TEST_F(CloudExternalDataStoreTest, StoreInvalidAndLoad) { … }
TEST_F(CloudExternalDataStoreTest, Prune) { … }
TEST_F(CloudExternalDataStoreTest, SharedCache) { … }
}