summaryrefslogtreecommitdiffstats
path: root/courgette/encode_decode_unittest.cc
diff options
context:
space:
mode:
authorcpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 00:19:24 +0000
committercpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 00:19:24 +0000
commit0d85afc71c8038e51d1f75ecbcc4621f4e47e2a3 (patch)
tree3e30ca543dec4d5ad7941ac3dbcb55d389d0f399 /courgette/encode_decode_unittest.cc
parentc4b7628d0fc77f4c2937914da148e978486ab41c (diff)
downloadchromium_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/encode_decode_unittest.cc')
-rw-r--r--courgette/encode_decode_unittest.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/courgette/encode_decode_unittest.cc b/courgette/encode_decode_unittest.cc
index 3246f3c..2396938 100644
--- a/courgette/encode_decode_unittest.cc
+++ b/courgette/encode_decode_unittest.cc
@@ -20,8 +20,8 @@ class EncodeDecodeTest : public testing::Test {
private:
void SetUp() {
PathService::Get(base::DIR_SOURCE_ROOT, &testdata_dir_);
- file_util::AppendToPath(&testdata_dir_, L"courgette");
- file_util::AppendToPath(&testdata_dir_, L"testdata");
+ testdata_dir_ = testdata_dir_.AppendASCII("courgette");
+ testdata_dir_ = testdata_dir_.AppendASCII("testdata");
}
void TearDown() { }
@@ -29,13 +29,13 @@ class EncodeDecodeTest : public testing::Test {
// Returns contents of |file_name| as uninterprested bytes stored in a string.
std::string FileContents(const char* file_name) const;
- std::wstring testdata_dir_; // Full path name of testdata directory
+ FilePath testdata_dir_; // Full path name of testdata directory
};
// Reads a test file into a string.
std::string EncodeDecodeTest::FileContents(const char* file_name) const {
- std::wstring file_path = testdata_dir_;
- file_util::AppendToPath(&file_path, UTF8ToWide(file_name));
+ FilePath file_path = testdata_dir_;
+ file_path = file_path.AppendASCII(file_name);
std::string file_contents;
if (!file_util::ReadFileToString(file_path, &file_contents)) {
EXPECT_TRUE(!"Could not read test data");