| 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 "mojo/edk/embedder/embedder.h" | 5 #include "mojo/edk/embedder/embedder.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "mojo/edk/util/mutex.h" | 22 #include "mojo/edk/util/mutex.h" |
| 23 #include "mojo/edk/util/ref_ptr.h" | 23 #include "mojo/edk/util/ref_ptr.h" |
| 24 #include "mojo/edk/util/thread_annotations.h" | 24 #include "mojo/edk/util/thread_annotations.h" |
| 25 #include "mojo/edk/util/waitable_event.h" | 25 #include "mojo/edk/util/waitable_event.h" |
| 26 #include "mojo/public/c/system/core.h" | 26 #include "mojo/public/c/system/core.h" |
| 27 #include "mojo/public/cpp/system/handle.h" | 27 #include "mojo/public/cpp/system/handle.h" |
| 28 #include "mojo/public/cpp/system/macros.h" | 28 #include "mojo/public/cpp/system/macros.h" |
| 29 #include "mojo/public/cpp/system/message_pipe.h" | 29 #include "mojo/public/cpp/system/message_pipe.h" |
| 30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
| 31 | 31 |
| 32 using mojo::platform::ScopedPlatformHandle; |
| 32 using mojo::platform::TaskRunner; | 33 using mojo::platform::TaskRunner; |
| 33 using mojo::system::test::TestIOThread; | 34 using mojo::system::test::TestIOThread; |
| 34 using mojo::util::ManualResetWaitableEvent; | 35 using mojo::util::ManualResetWaitableEvent; |
| 35 using mojo::util::Mutex; | 36 using mojo::util::Mutex; |
| 36 using mojo::util::MutexLocker; | 37 using mojo::util::MutexLocker; |
| 37 using mojo::util::RefPtr; | 38 using mojo::util::RefPtr; |
| 38 | 39 |
| 39 namespace mojo { | 40 namespace mojo { |
| 40 namespace embedder { | 41 namespace embedder { |
| 41 namespace { | 42 namespace { |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 | 787 |
| 787 EXPECT_TRUE(test::Shutdown()); | 788 EXPECT_TRUE(test::Shutdown()); |
| 788 } | 789 } |
| 789 | 790 |
| 790 // TODO(vtl): Test immediate write & close. | 791 // TODO(vtl): Test immediate write & close. |
| 791 // TODO(vtl): Test broken-connection cases. | 792 // TODO(vtl): Test broken-connection cases. |
| 792 | 793 |
| 793 } // namespace | 794 } // namespace |
| 794 } // namespace embedder | 795 } // namespace embedder |
| 795 } // namespace mojo | 796 } // namespace mojo |
| OLD | NEW |