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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
| 8 #include "base/macros.h" |
8 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
11 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
12 #include "chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_st
ream_writer.h" | 13 #include "chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_st
ream_writer.h" |
13 #include "content/public/test/test_browser_thread_bundle.h" | 14 #include "content/public/test/test_browser_thread_bundle.h" |
14 #include "net/base/io_buffer.h" | 15 #include "net/base/io_buffer.h" |
15 #include "net/base/net_errors.h" | 16 #include "net/base/net_errors.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
17 | 18 |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 ASSERT_EQ(1u, inner_write_log.size()); | 403 ASSERT_EQ(1u, inner_write_log.size()); |
403 EXPECT_EQ(kShortTextToWrite, inner_write_log[0]); | 404 EXPECT_EQ(kShortTextToWrite, inner_write_log[0]); |
404 | 405 |
405 // Flush of the inner file stream writer is not invoked, since a Write method | 406 // Flush of the inner file stream writer is not invoked, since a Write method |
406 // invocation fails before it. | 407 // invocation fails before it. |
407 EXPECT_EQ(0u, inner_flush_log.size()); | 408 EXPECT_EQ(0u, inner_flush_log.size()); |
408 } | 409 } |
409 | 410 |
410 } // namespace file_system_provider | 411 } // namespace file_system_provider |
411 } // namespace chromeos | 412 } // namespace chromeos |
OLD | NEW |