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

Side by Side Diff: chromeos/chromeos_test_utils.cc

Issue 11299236: This moves the ONC parsing code into chromeos/network/onc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chromeos/chromeos_test_utils.h"
6
7 #include "base/file_path.h"
8 #include "base/file_util.h"
9 #include "base/path_service.h"
10
11 namespace chromeos {
12 namespace test_utils {
13
14 bool GetTestDataPath(const std::string& filename, FilePath* data_dir) {
15 FilePath path;
16 if (!PathService::Get(base::DIR_SOURCE_ROOT, &path))
17 return false;
18 path = path.Append(FILE_PATH_LITERAL("chromeos"));
19 path = path.Append(FILE_PATH_LITERAL("test"));
20 path = path.Append(FILE_PATH_LITERAL("data"));
21 if (!file_util::PathExists(path)) // We don't want to create this.
22 return false;
23 DCHECK(data_dir);
24 *data_dir = path.Append(filename);
25 return true;
26 }
27
28 } // namespace test_utils
29 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698