| 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/system/embedder/embedder.h" | 5 #include "mojo/embedder/embedder.h" | 
| 6 | 6 | 
| 7 #include <string.h> | 7 #include <string.h> | 
| 8 | 8 | 
| 9 #include "base/bind.h" | 9 #include "base/bind.h" | 
| 10 #include "base/location.h" | 10 #include "base/location.h" | 
| 11 #include "base/logging.h" | 11 #include "base/logging.h" | 
| 12 #include "base/macros.h" | 12 #include "base/macros.h" | 
| 13 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" | 
| 14 #include "base/synchronization/waitable_event.h" | 14 #include "base/synchronization/waitable_event.h" | 
| 15 #include "mojo/common/test/multiprocess_test_helper.h" | 15 #include "mojo/common/test/multiprocess_test_helper.h" | 
|  | 16 #include "mojo/embedder/platform_channel_pair.h" | 
|  | 17 #include "mojo/embedder/test_embedder.h" | 
| 16 #include "mojo/public/system/core.h" | 18 #include "mojo/public/system/core.h" | 
| 17 #include "mojo/system/embedder/platform_channel_pair.h" |  | 
| 18 #include "mojo/system/embedder/test_embedder.h" |  | 
| 19 #include "mojo/system/test_utils.h" | 19 #include "mojo/system/test_utils.h" | 
| 20 #include "testing/gtest/include/gtest/gtest.h" | 20 #include "testing/gtest/include/gtest/gtest.h" | 
| 21 | 21 | 
| 22 namespace mojo { | 22 namespace mojo { | 
| 23 namespace embedder { | 23 namespace embedder { | 
| 24 namespace { | 24 namespace { | 
| 25 | 25 | 
| 26 class ScopedTestChannel { | 26 class ScopedTestChannel { | 
| 27  public: | 27  public: | 
| 28   // Creates a channel that lives on a given I/O thread (determined by the given | 28   // Creates a channel that lives on a given I/O thread (determined by the given | 
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 499 | 499 | 
| 500   EXPECT_TRUE(test::Shutdown()); | 500   EXPECT_TRUE(test::Shutdown()); | 
| 501 } | 501 } | 
| 502 | 502 | 
| 503 // TODO(vtl): Test immediate write & close. | 503 // TODO(vtl): Test immediate write & close. | 
| 504 // TODO(vtl): Test broken-connection cases. | 504 // TODO(vtl): Test broken-connection cases. | 
| 505 | 505 | 
| 506 }  // namespace | 506 }  // namespace | 
| 507 }  // namespace embedder | 507 }  // namespace embedder | 
| 508 }  // namespace mojo | 508 }  // namespace mojo | 
| OLD | NEW | 
|---|