| 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 "base/file_util.h" | 7 #include "base/files/file_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "base/thread_task_runner_handle.h" | 11 #include "base/thread_task_runner_handle.h" |
| 12 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
| 13 #include "net/base/io_buffer.h" | 13 #include "net/base/io_buffer.h" |
| 14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
| 15 #include "net/base/test_completion_callback.h" | 15 #include "net/base/test_completion_callback.h" |
| 16 #include "net/disk_cache/blockfile/backend_impl.h" | 16 #include "net/disk_cache/blockfile/backend_impl.h" |
| 17 #include "net/disk_cache/cache_util.h" | 17 #include "net/disk_cache/cache_util.h" |
| (...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 if (size_) | 315 if (size_) |
| 316 EXPECT_TRUE(cache_impl_->SetMaxSize(size_)); | 316 EXPECT_TRUE(cache_impl_->SetMaxSize(size_)); |
| 317 if (new_eviction_) | 317 if (new_eviction_) |
| 318 cache_impl_->SetNewEviction(); | 318 cache_impl_->SetNewEviction(); |
| 319 cache_impl_->SetType(type_); | 319 cache_impl_->SetType(type_); |
| 320 cache_impl_->SetFlags(flags); | 320 cache_impl_->SetFlags(flags); |
| 321 net::TestCompletionCallback cb; | 321 net::TestCompletionCallback cb; |
| 322 int rv = cache_impl_->Init(cb.callback()); | 322 int rv = cache_impl_->Init(cb.callback()); |
| 323 ASSERT_EQ(net::OK, cb.GetResult(rv)); | 323 ASSERT_EQ(net::OK, cb.GetResult(rv)); |
| 324 } | 324 } |
| OLD | NEW |