Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: components/policy/core/common/cloud/resource_cache_unittest.cc

Issue 109743002: Move policy code into components/policy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: moar fixes Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/cloud/resource_cache.h" 5 #include "components/policy/core/common/cloud/resource_cache.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/files/scoped_temp_dir.h" 10 #include "base/files/scoped_temp_dir.h"
11 #include "base/test/test_simple_task_runner.h" 11 #include "base/test/test_simple_task_runner.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace policy { 14 namespace policy {
15 15
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 EXPECT_EQ(kData0, contents[kSubC]); 148 EXPECT_EQ(kData0, contents[kSubC]);
149 149
150 // Other keys weren't affected. 150 // Other keys weren't affected.
151 cache.LoadAllSubkeys(kKey2, &contents); 151 cache.LoadAllSubkeys(kKey2, &contents);
152 EXPECT_EQ(2u, contents.size()); 152 EXPECT_EQ(2u, contents.size());
153 cache.LoadAllSubkeys(kKey3, &contents); 153 cache.LoadAllSubkeys(kKey3, &contents);
154 EXPECT_EQ(2u, contents.size()); 154 EXPECT_EQ(2u, contents.size());
155 } 155 }
156 156
157 } // namespace policy 157 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698