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

Unified Diff: chrome/common/json_value_serializer_perftest.cc

Issue 193047: Fix to use FilePath version of PathService::Get.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/search_engines/template_url_parser_unittest.cc ('k') | chrome/test/ui/omnibox_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/json_value_serializer_perftest.cc
===================================================================
--- chrome/common/json_value_serializer_perftest.cc (revision 25670)
+++ chrome/common/json_value_serializer_perftest.cc (working copy)
@@ -18,17 +18,17 @@
class JSONValueSerializerTests : public testing::Test {
protected:
virtual void SetUp() {
- static const wchar_t* const kTestFilenames[] = {
- L"serializer_nested_test.js",
- L"serializer_test.js",
- L"serializer_test_nowhitespace.js",
+ static const char* const kTestFilenames[] = {
+ "serializer_nested_test.js",
+ "serializer_test.js",
+ "serializer_test_nowhitespace.js",
};
// Load test cases
for (size_t i = 0; i < arraysize(kTestFilenames); ++i) {
- std::wstring filename;
+ FilePath filename;
EXPECT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &filename));
- file_util::AppendToPath(&filename, kTestFilenames[i]);
+ filename = filename.AppendASCII(kTestFilenames[i]);
std::string test_case;
EXPECT_TRUE(file_util::ReadFileToString(filename, &test_case));
« no previous file with comments | « chrome/browser/search_engines/template_url_parser_unittest.cc ('k') | chrome/test/ui/omnibox_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698