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/fileapi/buffering_file_st
ream_reader.h" | 5 #include "chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_st
ream_reader.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
16 #include "base/thread_task_runner_handle.h" | 16 #include "base/threading/thread_task_runner_handle.h" |
17 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" | 17 #include "chrome/browser/chromeos/fileapi/file_system_backend.h" |
18 #include "content/public/test/test_browser_thread_bundle.h" | 18 #include "content/public/test/test_browser_thread_bundle.h" |
19 #include "net/base/io_buffer.h" | 19 #include "net/base/io_buffer.h" |
20 #include "net/base/net_errors.h" | 20 #include "net/base/net_errors.h" |
21 #include "testing/gtest/include/gtest/gtest.h" | 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 namespace chromeos { | 23 namespace chromeos { |
24 namespace file_system_provider { | 24 namespace file_system_provider { |
25 namespace { | 25 namespace { |
26 | 26 |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 reader.GetLength(base::Bind(&LogValue<int64_t>, &get_length_log)); | 347 reader.GetLength(base::Bind(&LogValue<int64_t>, &get_length_log)); |
348 base::RunLoop().RunUntilIdle(); | 348 base::RunLoop().RunUntilIdle(); |
349 | 349 |
350 EXPECT_EQ(net::ERR_IO_PENDING, result); | 350 EXPECT_EQ(net::ERR_IO_PENDING, result); |
351 ASSERT_EQ(1u, get_length_log.size()); | 351 ASSERT_EQ(1u, get_length_log.size()); |
352 EXPECT_EQ(kFileSize, get_length_log[0]); | 352 EXPECT_EQ(kFileSize, get_length_log[0]); |
353 } | 353 } |
354 | 354 |
355 } // namespace file_system_provider | 355 } // namespace file_system_provider |
356 } // namespace chromeos | 356 } // namespace chromeos |
OLD | NEW |