| 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 "services/native_support/process_test_base.h" | 5 #include "services/native_support/process_test_base.h" |
| 6 | 6 |
| 7 #include "mojo/public/cpp/application/application_impl.h" | 7 #include "mojo/public/cpp/application/application_impl.h" |
| 8 #include "mojo/services/native_support/interfaces/process.mojom.h" | 8 #include "mojo/services/native_support/interfaces/process.mojom.h" |
| 9 | 9 |
| 10 using mojo::SynchronousInterfacePtr; | 10 using mojo::SynchronousInterfacePtr; |
| 11 | 11 |
| 12 namespace native_support { | 12 namespace native_support { |
| 13 | 13 |
| 14 ProcessTestBase::ProcessTestBase() {} | 14 ProcessTestBase::ProcessTestBase() {} |
| 15 | 15 |
| 16 ProcessTestBase::~ProcessTestBase() {} | 16 ProcessTestBase::~ProcessTestBase() {} |
| 17 | 17 |
| 18 void ProcessTestBase::SetUp() { | 18 void ProcessTestBase::SetUp() { |
| 19 mojo::test::ApplicationTestBase::SetUp(); | 19 mojo::test::ApplicationTestBase::SetUp(); |
| 20 ProcessPtr process_async; | 20 ProcessPtr process_async; |
| 21 // TODO(vtl): Fix |ConnectToService()|. | 21 // TODO(vtl): Fix this. |
| 22 application_impl()->ConnectToService("mojo:native_support", &process_async); | 22 application_impl()->ConnectToServiceDeprecated("mojo:native_support", |
| 23 &process_async); |
| 23 process_ = SynchronousInterfacePtr<Process>::Create( | 24 process_ = SynchronousInterfacePtr<Process>::Create( |
| 24 process_async.PassInterfaceHandle()); | 25 process_async.PassInterfaceHandle()); |
| 25 } | 26 } |
| 26 | 27 |
| 27 } // namespace native_support | 28 } // namespace native_support |
| OLD | NEW |