| Index: chrome/browser/chromeos/policy/cloud_external_data_store_unittest.cc
|
| diff --git a/chrome/browser/chromeos/policy/cloud_external_data_store_unittest.cc b/chrome/browser/chromeos/policy/cloud_external_data_store_unittest.cc
|
| index 29bafee65215d42607b7d511b9719b730fcb2467..4ce2f3451ba77db79ff1d3428fe61fa6714e0da8 100644
|
| --- a/chrome/browser/chromeos/policy/cloud_external_data_store_unittest.cc
|
| +++ b/chrome/browser/chromeos/policy/cloud_external_data_store_unittest.cc
|
| @@ -27,9 +27,9 @@ const size_t kMaxSize = 100;
|
|
|
| } // namespace
|
|
|
| -class CouldExternalDataStoreTest : public testing::Test {
|
| +class CloudExternalDataStoreTest : public testing::Test {
|
| public:
|
| - CouldExternalDataStoreTest();
|
| + CloudExternalDataStoreTest();
|
|
|
| virtual void SetUp() OVERRIDE;
|
|
|
| @@ -41,21 +41,21 @@ class CouldExternalDataStoreTest : public testing::Test {
|
| base::ScopedTempDir temp_dir_;
|
| scoped_ptr<ResourceCache> resource_cache_;
|
|
|
| - DISALLOW_COPY_AND_ASSIGN(CouldExternalDataStoreTest);
|
| + DISALLOW_COPY_AND_ASSIGN(CloudExternalDataStoreTest);
|
| };
|
|
|
| -CouldExternalDataStoreTest::CouldExternalDataStoreTest()
|
| +CloudExternalDataStoreTest::CloudExternalDataStoreTest()
|
| : kData1Hash(base::SHA1HashString(kData1)),
|
| kData2Hash(base::SHA1HashString(kData2)),
|
| task_runner_(new base::TestSimpleTaskRunner) {
|
| }
|
|
|
| -void CouldExternalDataStoreTest::SetUp() {
|
| +void CloudExternalDataStoreTest::SetUp() {
|
| ASSERT_TRUE(temp_dir_.CreateUniqueTempDir());
|
| resource_cache_.reset(new ResourceCache(temp_dir_.path(), task_runner_));
|
| }
|
|
|
| -TEST_F(CouldExternalDataStoreTest, StoreAndLoad) {
|
| +TEST_F(CloudExternalDataStoreTest, StoreAndLoad) {
|
| // Write an entry to a store.
|
| CloudExternalDataStore store(kKey1, task_runner_, resource_cache_.get());
|
| EXPECT_TRUE(store.Store(kPolicy1, kData1Hash, kData1));
|
| @@ -69,7 +69,7 @@ TEST_F(CouldExternalDataStoreTest, StoreAndLoad) {
|
| EXPECT_EQ(kData1, data);
|
| }
|
|
|
| -TEST_F(CouldExternalDataStoreTest, StoreTooLargeAndLoad) {
|
| +TEST_F(CloudExternalDataStoreTest, StoreTooLargeAndLoad) {
|
| // Write an entry to a store.
|
| CloudExternalDataStore store(kKey1, task_runner_, resource_cache_.get());
|
| EXPECT_TRUE(store.Store(kPolicy1, kData1Hash, kData2));
|
| @@ -92,7 +92,7 @@ TEST_F(CouldExternalDataStoreTest, StoreTooLargeAndLoad) {
|
| EXPECT_TRUE(contents.empty());
|
| }
|
|
|
| -TEST_F(CouldExternalDataStoreTest, StoreInvalidAndLoad) {
|
| +TEST_F(CloudExternalDataStoreTest, StoreInvalidAndLoad) {
|
| // Construct a store entry whose hash and contents do not match.
|
| CloudExternalDataStore store(kKey1, task_runner_, resource_cache_.get());
|
| EXPECT_TRUE(store.Store(kPolicy1, kData1Hash, kData2));
|
| @@ -114,7 +114,7 @@ TEST_F(CouldExternalDataStoreTest, StoreInvalidAndLoad) {
|
| EXPECT_TRUE(contents.empty());
|
| }
|
|
|
| -TEST_F(CouldExternalDataStoreTest, Prune) {
|
| +TEST_F(CloudExternalDataStoreTest, Prune) {
|
| // Write two entries to a store.
|
| CloudExternalDataStore store(kKey1, task_runner_, resource_cache_.get());
|
| EXPECT_TRUE(store.Store(kPolicy1, kData1Hash, kData1));
|
| @@ -153,7 +153,7 @@ TEST_F(CouldExternalDataStoreTest, Prune) {
|
| EXPECT_TRUE(contents.empty());
|
| }
|
|
|
| -TEST_F(CouldExternalDataStoreTest, SharedCache) {
|
| +TEST_F(CloudExternalDataStoreTest, SharedCache) {
|
| // Write entries to two stores for two different cache_keys sharing a cache.
|
| CloudExternalDataStore store1(kKey1, task_runner_, resource_cache_.get());
|
| EXPECT_TRUE(store1.Store(kPolicy1, kData1Hash, kData1));
|
|
|