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

Unified Diff: chrome/browser/privacy_blacklist/blacklist_unittest.cc

Issue 173418: Avoids the use of ToWStringHack in a few places.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 4 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 | « base/file_util_unittest.cc ('k') | chrome/test/selenium/selenium_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/privacy_blacklist/blacklist_unittest.cc
===================================================================
--- chrome/browser/privacy_blacklist/blacklist_unittest.cc (revision 24379)
+++ chrome/browser/privacy_blacklist/blacklist_unittest.cc (working copy)
@@ -13,12 +13,11 @@
TEST(BlacklistTest, Generic) {
// Get path relative to test data dir.
- std::wstring input;
+ FilePath input;
PathService::Get(chrome::DIR_TEST_DATA, &input);
- file_util::AppendToPath(&input, L"blacklist_small.pbr");
+ input = input.AppendASCII("blacklist_small.pbr");
- FilePath path = FilePath::FromWStringHack(input);
- Blacklist blacklist(path);
+ Blacklist blacklist(input);
// This test is a friend, so inspect the internal structures.
EXPECT_EQ(5U, blacklist.blacklist_.size());
« no previous file with comments | « base/file_util_unittest.cc ('k') | chrome/test/selenium/selenium_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698