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

Side by Side Diff: chrome/browser/policy/cloud/resource_cache_unittest.cc

Issue 12189011: Split up chrome/browser/policy subdirectory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase, add chrome/browser/chromeos/policy/OWNERS Created 7 years, 9 months 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/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
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
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud/resource_cache.cc ('k') | chrome/browser/policy/cloud/test_request_interceptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698