blob: 08fd0a65ed71f5e839d2f4a9c86b6e221b7da194 [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/native_support/process_test_base.h"
#include "mojo/public/cpp/application/application_impl.h"
#include "mojo/services/native_support/interfaces/process.mojom.h"
using mojo::SynchronousInterfacePtr;
namespace native_support {
ProcessTestBase::ProcessTestBase() {}
ProcessTestBase::~ProcessTestBase() {}
void ProcessTestBase::SetUp() {
mojo::test::ApplicationTestBase::SetUp();
ProcessPtr process_async;
// TODO(vtl): Fix this.
application_impl()->ConnectToServiceDeprecated("mojo:native_support",
&process_async);
process_ = SynchronousInterfacePtr<Process>::Create(
process_async.PassInterfaceHandle());
}
} // namespace native_support