Skip to content

Commit

Permalink
Restore disk_cache perf tests runnability.
Browse files Browse the repository at this point in the history
They stopped working since the DiskCacheTestBase no longer provides
a MessageLoop as of https://codereview.chromium.org/2839663002.
(Not that I am clear as to how the disk_cache unittests get it
 created, as they don't seem to call NetTestSuite::GetScopedTaskEnvironment()

BUG=

Review-Url: https://codereview.chromium.org/2879893002
Cr-Commit-Position: refs/heads/master@{#471358}
  • Loading branch information
morlovich authored and Commit bot committed May 12, 2017
1 parent fc91a39 commit c19a67f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/disk_cache/disk_cache_perftest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#include "base/run_loop.h"
#include "base/strings/string_util.h"
#include "base/test/perf_time_logger.h"
#include "base/test/scoped_task_environment.h"
#include "base/test/test_file_util.h"
#include "base/threading/thread.h"
#include "net/base/cache_type.h"
Expand Down Expand Up @@ -91,6 +92,7 @@ class DiskCachePerfTest : public DiskCacheTestWithCache {

private:
const size_t saved_fd_limit_;
base::test::ScopedTaskEnvironment scoped_task_environment_;
};

// Creates num_entries on the cache, and writes kHeaderSize bytes of metadata
Expand Down

0 comments on commit c19a67f

Please sign in to comment.