Chromium Code Reviews| Index: services/files/c/tests/mojio_impl_test_base.cc |
| diff --git a/services/files/c/tests/mojio_impl_test_base.cc b/services/files/c/tests/mojio_impl_test_base.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..87600bac6c3d86ee082eb4a2bc388e502db26f32 |
| --- /dev/null |
| +++ b/services/files/c/tests/mojio_impl_test_base.cc |
| @@ -0,0 +1,29 @@ |
| +// 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/files/c/tests/mojio_impl_test_base.h" |
| + |
| +namespace mojio { |
| +namespace test { |
| + |
| +MojioImplTestBase::MojioImplTestBase() { |
| +} |
| +MojioImplTestBase::~MojioImplTestBase() { |
|
viettrungluu
2015/04/03 19:45:31
nit: blank line above
|
| +} |
| + |
| +void MojioImplTestBase::SetUp() { |
| + mojo::test::ApplicationTestBase::SetUp(); |
| + |
| + mojo::files::FilesPtr files; |
| + application_impl()->ConnectToService("mojo:files", &files); |
| + |
| + mojo::files::Error error = mojo::files::ERROR_INTERNAL; |
| + files->OpenFileSystem(mojo::files::FILE_SYSTEM_TEMPORARY, |
| + mojo::GetProxy(&directory_), Capture(&error)); |
| + MOJO_CHECK(files.WaitForIncomingMethodCall()); |
| + MOJO_CHECK(error == mojo::files::ERROR_OK); |
| +} |
| + |
| +} // namespace test |
| +} // namespace mojio |