Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: storage/browser/blob/blob_storage_context_unittest.cc

Issue 2788883003: Move storage test next to the file that it tests (Closed)
Patch Set: The actual move. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « storage/browser/BUILD.gn ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "storage/browser/blob/blob_storage_context.h" 5 #include "storage/browser/blob/blob_storage_context.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/files/file.h" 14 #include "base/files/file.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/files/file_util.h" 16 #include "base/files/file_util.h"
17 #include "base/files/scoped_temp_dir.h"
17 #include "base/memory/ptr_util.h" 18 #include "base/memory/ptr_util.h"
18 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
19 #include "base/message_loop/message_loop.h" 20 #include "base/message_loop/message_loop.h"
20 #include "base/run_loop.h" 21 #include "base/run_loop.h"
21 #include "base/strings/string_number_conversions.h" 22 #include "base/strings/string_number_conversions.h"
22 #include "base/test/test_simple_task_runner.h" 23 #include "base/test/test_simple_task_runner.h"
23 #include "base/threading/thread_task_runner_handle.h" 24 #include "base/threading/thread_task_runner_handle.h"
24 #include "base/time/time.h" 25 #include "base/time/time.h"
25 #include "content/browser/blob_storage/blob_dispatcher_host.h"
26 #include "content/browser/blob_storage/chrome_blob_storage_context.h"
27 #include "content/public/test/test_browser_context.h"
28 #include "net/base/io_buffer.h" 26 #include "net/base/io_buffer.h"
29 #include "net/base/test_completion_callback.h" 27 #include "net/base/test_completion_callback.h"
30 #include "net/disk_cache/disk_cache.h" 28 #include "net/disk_cache/disk_cache.h"
31 #include "storage/browser/blob/blob_data_builder.h" 29 #include "storage/browser/blob/blob_data_builder.h"
32 #include "storage/browser/blob/blob_data_handle.h" 30 #include "storage/browser/blob/blob_data_handle.h"
33 #include "storage/browser/blob/blob_data_item.h" 31 #include "storage/browser/blob/blob_data_item.h"
34 #include "storage/browser/blob/blob_data_snapshot.h" 32 #include "storage/browser/blob/blob_data_snapshot.h"
35 #include "storage/browser/blob/blob_transport_host.h" 33 #include "storage/browser/blob/blob_transport_host.h"
36 #include "storage/common/blob_storage/blob_item_bytes_request.h" 34 #include "storage/common/blob_storage/blob_item_bytes_request.h"
37 #include "storage/common/blob_storage/blob_item_bytes_response.h" 35 #include "storage/common/blob_storage/blob_item_bytes_response.h"
(...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after
889 EXPECT_TRUE(file_runner_->HasPendingTask()); 887 EXPECT_TRUE(file_runner_->HasPendingTask());
890 file_runner_->RunPendingTasks(); 888 file_runner_->RunPendingTasks();
891 base::RunLoop().RunUntilIdle(); 889 base::RunLoop().RunUntilIdle();
892 EXPECT_EQ(0lu, context_->memory_controller().memory_usage()); 890 EXPECT_EQ(0lu, context_->memory_controller().memory_usage());
893 EXPECT_EQ(0lu, context_->memory_controller().disk_usage()); 891 EXPECT_EQ(0lu, context_->memory_controller().disk_usage());
894 } 892 }
895 893
896 // TODO(michaeln): tests for the deprecated url stuff 894 // TODO(michaeln): tests for the deprecated url stuff
897 895
898 } // namespace storage 896 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698