| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "files/public/cpp/output_stream_file.h" | 5 #include "files/cpp/output_stream_file.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "files/public/interfaces/files.mojom.h" | 12 #include "files/interfaces/files.mojom.h" |
| 13 #include "files/public/interfaces/types.mojom.h" | 13 #include "files/interfaces/types.mojom.h" |
| 14 #include "mojo/public/cpp/application/application_test_base.h" | 14 #include "mojo/public/cpp/application/application_test_base.h" |
| 15 #include "mojo/public/cpp/bindings/interface_request.h" | 15 #include "mojo/public/cpp/bindings/interface_request.h" |
| 16 #include "mojo/public/cpp/system/macros.h" | 16 #include "mojo/public/cpp/system/macros.h" |
| 17 #include "mojo/public/cpp/utility/run_loop.h" | 17 #include "mojo/public/cpp/utility/run_loop.h" |
| 18 | 18 |
| 19 namespace files_impl { | 19 namespace files_impl { |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 using OutputStreamFileTest = mojo::test::ApplicationTestBase; | 22 using OutputStreamFileTest = mojo::test::ApplicationTestBase; |
| 23 | 23 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 }); | 278 }); |
| 279 TestClose(file.get(), nullptr); | 279 TestClose(file.get(), nullptr); |
| 280 if (!got_connection_error) | 280 if (!got_connection_error) |
| 281 RunMessageLoop(); | 281 RunMessageLoop(); |
| 282 EXPECT_TRUE(got_connection_error); | 282 EXPECT_TRUE(got_connection_error); |
| 283 } | 283 } |
| 284 } | 284 } |
| 285 | 285 |
| 286 } // namespace | 286 } // namespace |
| 287 } // namespace files_impl | 287 } // namespace files_impl |
| OLD | NEW |