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 "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" | 5 #include "chrome/browser/chromeos/file_system_provider/fake_provided_file_system
.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/thread_task_runner_handle.h" | 12 #include "base/threading/thread_task_runner_handle.h" |
13 #include "net/base/io_buffer.h" | 13 #include "net/base/io_buffer.h" |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 namespace file_system_provider { | 16 namespace file_system_provider { |
17 namespace { | 17 namespace { |
18 | 18 |
19 const char kFakeFileName[] = "hello.txt"; | 19 const char kFakeFileName[] = "hello.txt"; |
20 const char kFakeFileText[] = | 20 const char kFakeFileText[] = |
21 "This is a testing file. Lorem ipsum dolor sit amet est."; | 21 "This is a testing file. Lorem ipsum dolor sit amet est."; |
22 const size_t kFakeFileSize = sizeof(kFakeFileText) - 1u; | 22 const size_t kFakeFileSize = sizeof(kFakeFileText) - 1u; |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
434 } | 434 } |
435 | 435 |
436 void FakeProvidedFileSystem::AbortMany(const std::vector<int>& task_ids) { | 436 void FakeProvidedFileSystem::AbortMany(const std::vector<int>& task_ids) { |
437 for (size_t i = 0; i < task_ids.size(); ++i) { | 437 for (size_t i = 0; i < task_ids.size(); ++i) { |
438 tracker_.TryCancel(task_ids[i]); | 438 tracker_.TryCancel(task_ids[i]); |
439 } | 439 } |
440 } | 440 } |
441 | 441 |
442 } // namespace file_system_provider | 442 } // namespace file_system_provider |
443 } // namespace chromeos | 443 } // namespace chromeos |
OLD | NEW |