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

Side by Side Diff: mojo/edk/system/test/scoped_test_dir.cc

Issue 1427633003: Move scoped_test_dir.* and test_io_thread.* from edk/test to edk/system/test. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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 | « mojo/edk/system/test/scoped_test_dir.h ('k') | mojo/edk/system/test/test_io_thread.h » ('j') | 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 "mojo/edk/test/scoped_test_dir.h" 5 #include "mojo/edk/system/test/scoped_test_dir.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 namespace system {
12 namespace test { 13 namespace test {
13 14
14 ScopedTestDir::ScopedTestDir() { 15 ScopedTestDir::ScopedTestDir() {
15 CHECK(temp_dir_.CreateUniqueTempDir()); 16 CHECK(temp_dir_.CreateUniqueTempDir());
16 } 17 }
17 18
18 ScopedTestDir::~ScopedTestDir() {} 19 ScopedTestDir::~ScopedTestDir() {}
19 20
20 util::ScopedFILE ScopedTestDir::CreateFile() { 21 util::ScopedFILE ScopedTestDir::CreateFile() {
21 base::FilePath unused; 22 base::FilePath unused;
22 return util::ScopedFILE( 23 return util::ScopedFILE(
23 base::CreateAndOpenTemporaryFileInDir(temp_dir_.path(), &unused)); 24 base::CreateAndOpenTemporaryFileInDir(temp_dir_.path(), &unused));
24 } 25 }
25 26
26 } // namespace test 27 } // namespace test
28 } // namespace system
27 } // namespace mojo 29 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/test/scoped_test_dir.h ('k') | mojo/edk/system/test/test_io_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698