diff options
author | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-30 23:54:04 +0000 |
---|---|---|
committer | evanm@google.com <evanm@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-30 23:54:04 +0000 |
commit | 640517fdd23e08ed95cf129d27457db817ee6124 (patch) | |
tree | 2674bc857b9d1b566e05bcfa1dd5c8cfd1897dbf /base/path_service_unittest.cc | |
parent | f92ed219c9aeeed79993d1d32f34e5d5c9888dbe (diff) | |
download | chromium_src-640517fdd23e08ed95cf129d27457db817ee6124.zip chromium_src-640517fdd23e08ed95cf129d27457db817ee6124.tar.gz chromium_src-640517fdd23e08ed95cf129d27457db817ee6124.tar.bz2 |
Begin the first small step towards using FilePath everywhere:
- Add some transition APIs.
- Start migrating some code to transition APIs.
Review URL: http://codereview.chromium.org/8825
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/path_service_unittest.cc')
-rw-r--r-- | base/path_service_unittest.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/base/path_service_unittest.cc b/base/path_service_unittest.cc index 769a850..92dde5a 100644 --- a/base/path_service_unittest.cc +++ b/base/path_service_unittest.cc @@ -2,10 +2,12 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. +#include "base/path_service.h" + #include "base/basictypes.h" #include "base/file_util.h" +#include "base/file_path.h" #include "base/logging.h" -#include "base/path_service.h" #include "base/platform_test.h" #if defined(OS_WIN) #include "base/win_util.h" @@ -18,9 +20,9 @@ namespace { // Returns true if PathService::Get returns true and sets the path parameter // to non-empty for the given PathService::DirType enumeration value. bool ReturnsValidPath(int dir_type) { - std::wstring path; + FilePath path; bool result = PathService::Get(dir_type, &path); - return result && !path.empty() && file_util::PathExists(path); + return result && !path.value().empty() && file_util::PathExists(path); } #if defined(OS_WIN) |