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

Unified Diff: net/disk_cache/disk_cache_test_base.h

Issue 2874833005: SimpleCache: read small files all at once. (Closed)
Patch Set: Add some metrics and an experiment knob. Not really happy with coverage, though. Created 3 years, 5 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 | « no previous file | net/disk_cache/disk_cache_test_base.cc » ('j') | net/disk_cache/disk_cache_test_base.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/disk_cache_test_base.h
diff --git a/net/disk_cache/disk_cache_test_base.h b/net/disk_cache/disk_cache_test_base.h
index aa91ed74c7f4d630d77eebf5f3d2fd8c1c7b6a01..fb44387320cad225613078737252737e08f094d6 100644
--- a/net/disk_cache/disk_cache_test_base.h
+++ b/net/disk_cache/disk_cache_test_base.h
@@ -12,6 +12,8 @@
#include "base/files/file_path.h"
#include "base/files/scoped_temp_dir.h"
#include "base/macros.h"
+#include "base/metrics/field_trial.h"
+#include "base/test/scoped_feature_list.h"
#include "base/threading/thread.h"
#include "net/base/cache_type.h"
#include "net/disk_cache/disk_cache.h"
@@ -189,6 +191,10 @@ class DiskCacheTestWithCache : public DiskCacheTest {
void InitMemoryCache();
void InitDiskCache();
+ // Need to have the one "global" trial list before we change things.
+ std::unique_ptr<base::FieldTrialList> field_trial_list_;
+ base::test::ScopedFeatureList scoped_feature_list_;
+
base::Thread cache_thread_;
DISALLOW_COPY_AND_ASSIGN(DiskCacheTestWithCache);
};
« no previous file with comments | « no previous file | net/disk_cache/disk_cache_test_base.cc » ('j') | net/disk_cache/disk_cache_test_base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698