| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "net/disk_cache/disk_cache_test_base.h" | 5 #include "net/disk_cache/disk_cache_test_base.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
| 10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
| 11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 12 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
| 13 #include "base/thread_task_runner_handle.h" | |
| 14 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" |
| 15 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
| 16 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
| 17 #include "net/base/test_completion_callback.h" | 17 #include "net/base/test_completion_callback.h" |
| 18 #include "net/disk_cache/blockfile/backend_impl.h" | 18 #include "net/disk_cache/blockfile/backend_impl.h" |
| 19 #include "net/disk_cache/cache_util.h" | 19 #include "net/disk_cache/cache_util.h" |
| 20 #include "net/disk_cache/disk_cache.h" | 20 #include "net/disk_cache/disk_cache.h" |
| 21 #include "net/disk_cache/disk_cache_test_util.h" | 21 #include "net/disk_cache/disk_cache_test_util.h" |
| 22 #include "net/disk_cache/memory/mem_backend_impl.h" | 22 #include "net/disk_cache/memory/mem_backend_impl.h" |
| 23 #include "net/disk_cache/simple/simple_backend_impl.h" | 23 #include "net/disk_cache/simple/simple_backend_impl.h" |
| 24 #include "net/disk_cache/simple/simple_index.h" | 24 #include "net/disk_cache/simple/simple_index.h" |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 if (size_) | 338 if (size_) |
| 339 EXPECT_TRUE(cache_impl_->SetMaxSize(size_)); | 339 EXPECT_TRUE(cache_impl_->SetMaxSize(size_)); |
| 340 if (new_eviction_) | 340 if (new_eviction_) |
| 341 cache_impl_->SetNewEviction(); | 341 cache_impl_->SetNewEviction(); |
| 342 cache_impl_->SetType(type_); | 342 cache_impl_->SetType(type_); |
| 343 cache_impl_->SetFlags(flags); | 343 cache_impl_->SetFlags(flags); |
| 344 net::TestCompletionCallback cb; | 344 net::TestCompletionCallback cb; |
| 345 int rv = cache_impl_->Init(cb.callback()); | 345 int rv = cache_impl_->Init(cb.callback()); |
| 346 ASSERT_EQ(net::OK, cb.GetResult(rv)); | 346 ASSERT_EQ(net::OK, cb.GetResult(rv)); |
| 347 } | 347 } |
| OLD | NEW |