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

Unified Diff: chrome/browser/policy/cloud/resource_cache_unittest.cc

Issue 23868021: Prepare ExternalPolicyDataUpdater and ResourceCache for blocking pool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-uploading due to rietveld flake. Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/policy/cloud/resource_cache.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud/resource_cache_unittest.cc
diff --git a/chrome/browser/policy/cloud/resource_cache_unittest.cc b/chrome/browser/policy/cloud/resource_cache_unittest.cc
index 17a8f59ccb376dfe3a31b3aef9299e7d4d8ff1d2..eecb40cde712520ac64c1e193015864b53545874 100644
--- a/chrome/browser/policy/cloud/resource_cache_unittest.cc
+++ b/chrome/browser/policy/cloud/resource_cache_unittest.cc
@@ -6,6 +6,7 @@
#include "base/basictypes.h"
#include "base/files/scoped_temp_dir.h"
+#include "base/test/test_simple_task_runner.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace policy {
@@ -29,7 +30,8 @@ const char kData1[] = "{}";
TEST(ResourceCacheTest, StoreAndLoad) {
base::ScopedTempDir temp_dir;
ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
- ResourceCache cache(temp_dir.path());
+ ResourceCache cache(temp_dir.path(),
+ make_scoped_refptr(new base::TestSimpleTaskRunner));
// No data initially.
std::string data;
« no previous file with comments | « chrome/browser/policy/cloud/resource_cache.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698