| Index: net/disk_cache/backend_unittest.cc
|
| diff --git a/net/disk_cache/backend_unittest.cc b/net/disk_cache/backend_unittest.cc
|
| index ba8d101c32ef870b7e173694107465d6ab1a56c7..6f9c5b2362e74d0c7853250ed6a450ab540c129c 100644
|
| --- a/net/disk_cache/backend_unittest.cc
|
| +++ b/net/disk_cache/backend_unittest.cc
|
| @@ -2,10 +2,11 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include <stdint.h>
|
| +
|
| #include "base/basictypes.h"
|
| #include "base/files/file_util.h"
|
| #include "base/metrics/field_trial.h"
|
| -#include "base/port.h"
|
| #include "base/run_loop.h"
|
| #include "base/strings/string_split.h"
|
| #include "base/strings/string_util.h"
|
| @@ -53,7 +54,7 @@ scoped_ptr<disk_cache::BackendImpl> CreateExistingEntryCache(
|
| net::TestCompletionCallback cb;
|
|
|
| scoped_ptr<disk_cache::BackendImpl> cache(new disk_cache::BackendImpl(
|
| - cache_path, cache_thread.message_loop_proxy(), NULL));
|
| + cache_path, cache_thread.task_runner(), NULL));
|
| int rv = cache->Init(cb.callback());
|
| if (cb.GetResult(rv) != net::OK)
|
| return scoped_ptr<disk_cache::BackendImpl>();
|
| @@ -1899,8 +1900,8 @@ TEST_F(DiskCacheTest, SimpleCacheControlRestart) {
|
|
|
| const int kRestartCount = 5;
|
| for (int i = 0; i < kRestartCount; ++i) {
|
| - cache.reset(new disk_cache::BackendImpl(
|
| - cache_path_, cache_thread.message_loop_proxy(), NULL));
|
| + cache.reset(new disk_cache::BackendImpl(cache_path_,
|
| + cache_thread.task_runner(), NULL));
|
| int rv = cache->Init(cb.callback());
|
| ASSERT_EQ(net::OK, cb.GetResult(rv));
|
| EXPECT_EQ(1, cache->GetEntryCount());
|
| @@ -1941,7 +1942,7 @@ TEST_F(DiskCacheTest, SimpleCacheControlLeave) {
|
| const int kRestartCount = 5;
|
| for (int i = 0; i < kRestartCount; ++i) {
|
| scoped_ptr<disk_cache::BackendImpl> cache(new disk_cache::BackendImpl(
|
| - cache_path_, cache_thread.message_loop_proxy(), NULL));
|
| + cache_path_, cache_thread.task_runner(), NULL));
|
| int rv = cache->Init(cb.callback());
|
| ASSERT_EQ(net::OK, cb.GetResult(rv));
|
| EXPECT_EQ(1, cache->GetEntryCount());
|
| @@ -3330,7 +3331,7 @@ TEST_F(DiskCacheBackendTest, SimpleCacheOpenBadFile) {
|
| disk_cache::simple_util::GetFilenameFromKeyAndFileIndex(key, 0));
|
|
|
| disk_cache::SimpleFileHeader header;
|
| - header.initial_magic_number = GG_UINT64_C(0xbadf00d);
|
| + header.initial_magic_number = UINT64_C(0xbadf00d);
|
| EXPECT_EQ(
|
| implicit_cast<int>(sizeof(header)),
|
| base::WriteFile(entry_file1_path, reinterpret_cast<char*>(&header),
|
|
|