| 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 "chrome/browser/policy/resource_cache.h" | 5 #include "chrome/browser/policy/cloud/resource_cache.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| 11 namespace policy { | 11 namespace policy { |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 const char kKey[] = "key"; | 15 const char kKey[] = "key"; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 EXPECT_EQ(0u, contents.size()); | 77 EXPECT_EQ(0u, contents.size()); |
| 78 | 78 |
| 79 // The other key was not affected. | 79 // The other key was not affected. |
| 80 cache.LoadAllSubkeys(kAnotherKey, &contents); | 80 cache.LoadAllSubkeys(kAnotherKey, &contents); |
| 81 EXPECT_EQ(2u, contents.size()); | 81 EXPECT_EQ(2u, contents.size()); |
| 82 EXPECT_EQ(kData0, contents[kSubA]); | 82 EXPECT_EQ(kData0, contents[kSubA]); |
| 83 EXPECT_EQ(kData1, contents[kSubB]); | 83 EXPECT_EQ(kData1, contents[kSubB]); |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace policy | 86 } // namespace policy |
| OLD | NEW |