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

Unified Diff: prefs_unittest.cc

Issue 2856070: Don't send machine and user ID to Omaha anymore. Send a/r pings instead. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Address review comments. Created 10 years, 5 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
Index: prefs_unittest.cc
diff --git a/prefs_unittest.cc b/prefs_unittest.cc
index fc492fb048c53415f546ca141ff4d70eaaf72603..87116e5481c8a0ef446f900ff8ff6b99b44044ba 100644
--- a/prefs_unittest.cc
+++ b/prefs_unittest.cc
@@ -91,12 +91,11 @@ TEST_F(PrefsTest, SetStringBadKey) {
TEST_F(PrefsTest, SetStringCreateDir) {
const char kKey[] = "a-test-key";
const char kValue[] = "test value";
- EXPECT_TRUE(prefs_.Init(FilePath(prefs_dir_.Append("subdir"))));
+ FilePath subdir = prefs_dir_.Append("subdir1").Append("subdir2");
+ EXPECT_TRUE(prefs_.Init(subdir));
EXPECT_TRUE(prefs_.SetString(kKey, kValue));
string value;
- EXPECT_TRUE(
- file_util::ReadFileToString(prefs_dir_.Append("subdir").Append(kKey),
- &value));
+ EXPECT_TRUE(file_util::ReadFileToString(subdir.Append(kKey), &value));
EXPECT_EQ(kValue, value);
}
« omaha_request_action.h ('K') | « prefs_mock.h ('k') | update_attempter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698