diff options
author | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-22 00:19:24 +0000 |
---|---|---|
committer | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-22 00:19:24 +0000 |
commit | 0d85afc71c8038e51d1f75ecbcc4621f4e47e2a3 (patch) | |
tree | 3e30ca543dec4d5ad7941ac3dbcb55d389d0f399 /courgette/bsdiff_memory_unittest.cc | |
parent | c4b7628d0fc77f4c2937914da148e978486ab41c (diff) | |
download | chromium_src-0d85afc71c8038e51d1f75ecbcc4621f4e47e2a3.zip chromium_src-0d85afc71c8038e51d1f75ecbcc4621f4e47e2a3.tar.gz chromium_src-0d85afc71c8038e51d1f75ecbcc4621f4e47e2a3.tar.bz2 |
Replaces the uses of the deprecated AppendPath function in courgette
this is same http://codereview.chromium.org/196022
commiting for him.
BUG=none
TEST=the modified test should run fine.
TBR=sra
Review URL: http://codereview.chromium.org/214044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26768 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'courgette/bsdiff_memory_unittest.cc')
-rw-r--r-- | courgette/bsdiff_memory_unittest.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/courgette/bsdiff_memory_unittest.cc b/courgette/bsdiff_memory_unittest.cc index 97da726..a384dee 100644 --- a/courgette/bsdiff_memory_unittest.cc +++ b/courgette/bsdiff_memory_unittest.cc @@ -17,23 +17,23 @@ class BSDiffMemoryTest : public testing::Test { public: - std::string FileContents(const char *file_name) const; + std::string FileContents(const char* file_name) const; void GenerateAndTestPatch(const std::string& a, const std::string& b) const; private: void SetUp() { PathService::Get(base::DIR_SOURCE_ROOT, &test_dir_); - file_util::AppendToPath(&test_dir_, L"courgette"); - file_util::AppendToPath(&test_dir_, L"testdata"); + test_dir_ = test_dir_.AppendASCII("courgette"); + test_dir_ = test_dir_.AppendASCII("testdata"); } - std::wstring test_dir_; + FilePath test_dir_; }; // Reads a test file into a string. -std::string BSDiffMemoryTest::FileContents(const char *file_name) const { - std::wstring file_path = test_dir_; - file_util::AppendToPath(&file_path, UTF8ToWide(file_name)); +std::string BSDiffMemoryTest::FileContents(const char* file_name) const { + FilePath file_path = test_dir_; + file_path = file_path.AppendASCII(file_name); std::string file_bytes; if (!file_util::ReadFileToString(file_path, &file_bytes)) { EXPECT_TRUE(!"Could not read test data"); |