diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-04 17:50:31 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-04 17:50:31 +0000 |
commit | b647e0b22430373766687242da51ee1453a19558 (patch) | |
tree | f6f67aa96441563d779d3bea9b84ceede26812c5 /chrome/renderer | |
parent | 4c70b7a559f7188a2820b38e6dad2758a310b55c (diff) | |
download | chromium_src-b647e0b22430373766687242da51ee1453a19558.zip chromium_src-b647e0b22430373766687242da51ee1453a19558.tar.gz chromium_src-b647e0b22430373766687242da51ee1453a19558.tar.bz2 |
Deprecate wstring version of PathService::Get() in unit tests.
Review URL: http://codereview.chromium.org/100292
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15221 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rwxr-xr-x | chrome/renderer/extensions/json_schema_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/renderer/extensions/json_schema_unittest.cc b/chrome/renderer/extensions/json_schema_unittest.cc index 200c435..15a4d8c 100755 --- a/chrome/renderer/extensions/json_schema_unittest.cc +++ b/chrome/renderer/extensions/json_schema_unittest.cc @@ -28,10 +28,10 @@ class JsonSchemaTest : public V8UnitTest { ExecuteScriptInContext(js, kJsonSchema); // Add the test functions to the context. - std::wstring test_js_file_path; + FilePath test_js_file_path; ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &test_js_file_path)); - file_util::AppendToPath(&test_js_file_path, L"extensions"); - file_util::AppendToPath(&test_js_file_path, UTF8ToWide(kJsonSchemaTest)); + test_js_file_path = test_js_file_path.AppendASCII("extensions"); + test_js_file_path = test_js_file_path.AppendASCII(kJsonSchemaTest); std::string test_js; ASSERT_TRUE(file_util::ReadFileToString(test_js_file_path, &test_js)); ExecuteScriptInContext(test_js, kJsonSchemaTest); |