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

Side by Side Diff: mojo/services/files/c/tests/mojio_test_base.cc

Issue 1388413005: Move //mojo/services/X/public/... to //mojo/services/X/... (part 1). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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
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 "files/public/c/tests/mojio_test_base.h" 5 #include "files/c/tests/mojio_test_base.h"
6 6
7 #include "files/public/c/lib/singletons.h" 7 #include "files/c/lib/singletons.h"
8 #include "mojo/public/cpp/environment/logging.h" 8 #include "mojo/public/cpp/environment/logging.h"
9 9
10 namespace mojio { 10 namespace mojio {
11 namespace test { 11 namespace test {
12 12
13 void MojioTestBase::SetUp() { 13 void MojioTestBase::SetUp() {
14 MojioImplTestBase::SetUp(); 14 MojioImplTestBase::SetUp();
15 15
16 // Explicitly set up the singletons. 16 // Explicitly set up the singletons.
17 MOJO_CHECK(singletons::GetErrnoImpl()); 17 MOJO_CHECK(singletons::GetErrnoImpl());
18 MOJO_CHECK(singletons::GetFDTable()); 18 MOJO_CHECK(singletons::GetFDTable());
19 singletons::SetCurrentWorkingDirectory(directory().Pass()); 19 singletons::SetCurrentWorkingDirectory(directory().Pass());
20 MOJO_CHECK(singletons::GetCurrentWorkingDirectory()); 20 MOJO_CHECK(singletons::GetCurrentWorkingDirectory());
21 } 21 }
22 22
23 void MojioTestBase::TearDown() { 23 void MojioTestBase::TearDown() {
24 // Explicitly tear down the singletons. 24 // Explicitly tear down the singletons.
25 singletons::ResetCurrentWorkingDirectory(); 25 singletons::ResetCurrentWorkingDirectory();
26 singletons::ResetFDTable(); 26 singletons::ResetFDTable();
27 singletons::ResetErrnoImpl(); 27 singletons::ResetErrnoImpl();
28 28
29 MojioImplTestBase::TearDown(); 29 MojioImplTestBase::TearDown();
30 } 30 }
31 31
32 } // namespace test 32 } // namespace test
33 } // namespace mojio 33 } // namespace mojio
OLDNEW
« no previous file with comments | « mojo/services/files/c/tests/mojio_test_base.h ('k') | mojo/services/files/c/tests/mojio_unistd_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698