OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/policy/cloud_external_data_store.h" | 5 #include "chrome/browser/chromeos/policy/cloud_external_data_store.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
8 #include "base/files/scoped_temp_dir.h" | 10 #include "base/files/scoped_temp_dir.h" |
| 11 #include "base/macros.h" |
9 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
10 #include "base/test/test_simple_task_runner.h" | 13 #include "base/test/test_simple_task_runner.h" |
11 #include "components/policy/core/common/cloud/resource_cache.h" | 14 #include "components/policy/core/common/cloud/resource_cache.h" |
12 #include "crypto/sha2.h" | 15 #include "crypto/sha2.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
14 | 17 |
15 namespace policy { | 18 namespace policy { |
16 | 19 |
17 namespace { | 20 namespace { |
18 | 21 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 EXPECT_TRUE(contents.empty()); | 193 EXPECT_TRUE(contents.empty()); |
191 | 194 |
192 // Check that the part of the resource cache backing the second store is | 195 // Check that the part of the resource cache backing the second store is |
193 // unaffected. | 196 // unaffected. |
194 resource_cache_->LoadAllSubkeys(kKey2, &contents); | 197 resource_cache_->LoadAllSubkeys(kKey2, &contents); |
195 ASSERT_EQ(1u, contents.size()); | 198 ASSERT_EQ(1u, contents.size()); |
196 EXPECT_EQ(kData2, contents.begin()->second); | 199 EXPECT_EQ(kData2, contents.begin()->second); |
197 } | 200 } |
198 | 201 |
199 } // namespace policy | 202 } // namespace policy |
OLD | NEW |