Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(469)

Side by Side Diff: services/native_support/process_test_base.cc

Issue 1919503003: native_support service: SynchronousInterfacePtr conversion in tests. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/native_support/process_test_base.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
9
10 using mojo::SynchronousInterfacePtr;
8 11
9 namespace native_support { 12 namespace native_support {
10 13
11 ProcessTestBase::ProcessTestBase() {} 14 ProcessTestBase::ProcessTestBase() {}
12 15
13 ProcessTestBase::~ProcessTestBase() {} 16 ProcessTestBase::~ProcessTestBase() {}
14 17
15 void ProcessTestBase::SetUp() { 18 void ProcessTestBase::SetUp() {
16 mojo::test::ApplicationTestBase::SetUp(); 19 mojo::test::ApplicationTestBase::SetUp();
17 application_impl()->ConnectToService("mojo:native_support", &process_); 20 ProcessPtr process_async;
21 // TODO(vtl): Fix |ConnectToService()|.
22 application_impl()->ConnectToService("mojo:native_support", &process_async);
23 process_ = SynchronousInterfacePtr<Process>::Create(
24 process_async.PassInterfaceHandle());
18 } 25 }
19 26
20 } // namespace native_support 27 } // namespace native_support
OLDNEW
« no previous file with comments | « services/native_support/process_test_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698