OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "components/policy/core/common/cloud/resource_cache.h" | 5 #include "components/policy/core/common/cloud/resource_cache.h" |
6 | 6 |
7 #include "base/basictypes.h" | |
8 #include "base/bind.h" | 7 #include "base/bind.h" |
9 #include "base/callback.h" | 8 #include "base/callback.h" |
10 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
11 #include "base/test/test_simple_task_runner.h" | 10 #include "base/test/test_simple_task_runner.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
13 | 12 |
14 namespace policy { | 13 namespace policy { |
15 | 14 |
16 namespace { | 15 namespace { |
17 | 16 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 EXPECT_EQ(kData0, contents[kSubC]); | 147 EXPECT_EQ(kData0, contents[kSubC]); |
149 | 148 |
150 // Other keys weren't affected. | 149 // Other keys weren't affected. |
151 cache.LoadAllSubkeys(kKey2, &contents); | 150 cache.LoadAllSubkeys(kKey2, &contents); |
152 EXPECT_EQ(2u, contents.size()); | 151 EXPECT_EQ(2u, contents.size()); |
153 cache.LoadAllSubkeys(kKey3, &contents); | 152 cache.LoadAllSubkeys(kKey3, &contents); |
154 EXPECT_EQ(2u, contents.size()); | 153 EXPECT_EQ(2u, contents.size()); |
155 } | 154 } |
156 | 155 |
157 } // namespace policy | 156 } // namespace policy |
OLD | NEW |