| 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" | |
| 8 #include "mojo/public/cpp/application/connect.h" | 7 #include "mojo/public/cpp/application/connect.h" |
| 9 #include "mojo/services/native_support/interfaces/process.mojom.h" | 8 #include "mojo/services/native_support/interfaces/process.mojom.h" |
| 10 | 9 |
| 11 using mojo::SynchronousInterfacePtr; | 10 using mojo::SynchronousInterfacePtr; |
| 12 | 11 |
| 13 namespace native_support { | 12 namespace native_support { |
| 14 | 13 |
| 15 ProcessTestBase::ProcessTestBase() {} | 14 ProcessTestBase::ProcessTestBase() {} |
| 16 | 15 |
| 17 ProcessTestBase::~ProcessTestBase() {} | 16 ProcessTestBase::~ProcessTestBase() {} |
| 18 | 17 |
| 19 void ProcessTestBase::SetUp() { | 18 void ProcessTestBase::SetUp() { |
| 20 mojo::test::ApplicationTestBase::SetUp(); | 19 mojo::test::ApplicationTestBase::SetUp(); |
| 21 mojo::ConnectToService(application_impl()->shell(), "mojo:native_support", | 20 mojo::ConnectToService(shell(), "mojo:native_support", |
| 22 GetSynchronousProxy(&process_)); | 21 GetSynchronousProxy(&process_)); |
| 23 } | 22 } |
| 24 | 23 |
| 25 } // namespace native_support | 24 } // namespace native_support |
| OLD | NEW |