OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/browser/appcache/appcache_disk_cache.h" |
5 #include "base/bind.h" | 6 #include "base/bind.h" |
6 #include "base/files/file_util.h" | 7 #include "base/files/file_util.h" |
7 #include "base/files/scoped_temp_dir.h" | 8 #include "base/files/scoped_temp_dir.h" |
| 9 #include "base/message_loop/message_loop.h" |
8 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
9 #include "base/single_thread_task_runner.h" | 11 #include "base/single_thread_task_runner.h" |
10 #include "base/threading/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
11 #include "content/browser/appcache/appcache_disk_cache.h" | |
12 #include "net/base/io_buffer.h" | 13 #include "net/base/io_buffer.h" |
13 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
15 | 16 |
16 namespace content { | 17 namespace content { |
17 | 18 |
18 class AppCacheDiskCacheTest : public testing::Test { | 19 class AppCacheDiskCacheTest : public testing::Test { |
19 public: | 20 public: |
20 AppCacheDiskCacheTest() {} | 21 AppCacheDiskCacheTest() {} |
21 | 22 |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 EXPECT_EQ( | 176 EXPECT_EQ( |
176 net::ERR_ABORTED, | 177 net::ERR_ABORTED, |
177 entry1->Read(0, 0, read_buf.get(), kDataLen, completion_callback_)); | 178 entry1->Read(0, 0, read_buf.get(), kDataLen, completion_callback_)); |
178 entry1->Close(); | 179 entry1->Close(); |
179 entry2->Close(); | 180 entry2->Close(); |
180 | 181 |
181 FlushCacheTasks(); | 182 FlushCacheTasks(); |
182 } | 183 } |
183 | 184 |
184 } // namespace content | 185 } // namespace content |
OLD | NEW |