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

Unified Diff: chromeos/printing/ppd_cache_unittest.cc

Issue 2516513002: Lazily create PPDCache directory on first store. (Closed)
Patch Set: Created 4 years, 1 month 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 | « chromeos/printing/ppd_cache.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/printing/ppd_cache_unittest.cc
diff --git a/chromeos/printing/ppd_cache_unittest.cc b/chromeos/printing/ppd_cache_unittest.cc
index 9df8d4f395f954dac557504a037ce3a013146f76..51f2eec2c018877a376ef3ec604f86bf6a8fb324 100644
--- a/chromeos/printing/ppd_cache_unittest.cc
+++ b/chromeos/printing/ppd_cache_unittest.cc
@@ -52,10 +52,13 @@ class PpdCacheTest : public ::testing::Test {
}
// Make and return a cache for the test that uses a temporary directory
- // which is cleaned up at the end of the test.
+ // which is cleaned up at the end of the test. Note that we pass
+ // a (nonexistant) subdirectory of temp_dir_ to the cache to exercise
+ // the lazy-creation-of-the-cache-directory code.
std::unique_ptr<PpdCache> CreateTestCache(
const PpdCache::Options& options = PpdCache::Options()) {
- return PpdCache::Create(ppd_cache_temp_dir_.GetPath(), options);
+ return PpdCache::Create(ppd_cache_temp_dir_.GetPath().Append("Cache"),
+ options);
}
protected:
« no previous file with comments | « chromeos/printing/ppd_cache.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698