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

Unified Diff: src/platform/update_engine/omaha_request_prep_action_unittest.cc

Issue 1881001: AU: Many minor cleanup changes (Closed) Base URL: ssh://git@chromiumos-git/chromeos
Patch Set: fixes for review Created 10 years, 8 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: src/platform/update_engine/omaha_request_prep_action_unittest.cc
diff --git a/src/platform/update_engine/omaha_request_prep_action_unittest.cc b/src/platform/update_engine/omaha_request_prep_action_unittest.cc
index d5a95e0ba07792e72ba5eb89faf60ffe938bb569..01016c3cd6b5c411936ddebd77dd78a5635b0f18 100644
--- a/src/platform/update_engine/omaha_request_prep_action_unittest.cc
+++ b/src/platform/update_engine/omaha_request_prep_action_unittest.cc
@@ -111,7 +111,9 @@ TEST_F(OmahaRequestPrepActionTest, SimpleTest) {
{
ASSERT_TRUE(WriteFileString(
kTestDir + "/etc/lsb-release",
- "GOOGLE_FOO=bar\nGOOGLE_RELEASE=0.2.2.3\nGOOGLE_TRACK=footrack"));
+ "CHROMEOS_RELEASE_FOO=bar\n"
+ "CHROMEOS_RELEASE_VERSION=0.2.2.3\n"
+ "CHROMEOS_RELEASE_TRACK=footrack"));
UpdateCheckParams out;
EXPECT_TRUE(DoTest(false, &out));
EXPECT_TRUE(IsValidGuid(out.machine_id)) << "id: " << out.machine_id;
@@ -134,7 +136,9 @@ TEST_F(OmahaRequestPrepActionTest, MissingTrackTest) {
{
ASSERT_TRUE(WriteFileString(
kTestDir + "/etc/lsb-release",
- "GOOGLE_FOO=bar\nGOOGLE_RELEASE=0.2.2.3\nGOOGLE_TRXCK=footrack"));
+ "CHROMEOS_RELEASE_FOO=bar\n"
+ "CHROMEOS_RELEASE_VERSION=0.2.2.3\n"
+ "CHROMEOS_RELEASE_TRXCK=footrack"));
UpdateCheckParams out;
EXPECT_TRUE(DoTest(false, &out));
EXPECT_TRUE(IsValidGuid(out.machine_id));
@@ -157,8 +161,9 @@ TEST_F(OmahaRequestPrepActionTest, ConfusingReleaseTest) {
{
ASSERT_TRUE(WriteFileString(
kTestDir + "/etc/lsb-release",
- "GOOGLE_FOO=GOOGLE_RELEASE=1.2.3.4\n"
- "GOOGLE_RELEASE=0.2.2.3\nGOOGLE_TRXCK=footrack"));
+ "CHROMEOS_RELEASE_FOO=CHROMEOS_RELEASE_VERSION=1.2.3.4\n"
+ "CHROMEOS_RELEASE_VERSION=0.2.2.3\n"
+ "CHROMEOS_RELEASE_TRXCK=footrack"));
UpdateCheckParams out;
EXPECT_TRUE(DoTest(false, &out));
EXPECT_TRUE(IsValidGuid(out.machine_id)) << out.machine_id;
@@ -180,8 +185,9 @@ TEST_F(OmahaRequestPrepActionTest, MachineIdPersistsTest) {
utils::kStatefulPartition + "/etc"));
ASSERT_TRUE(WriteFileString(
kTestDir + "/etc/lsb-release",
- "GOOGLE_FOO=GOOGLE_RELEASE=1.2.3.4\n"
- "GOOGLE_RELEASE=0.2.2.3\nGOOGLE_TRXCK=footrack"));
+ "CHROMEOS_RELEASE_FOO=CHROMEOS_RELEASE_VERSION=1.2.3.4\n"
+ "CHROMEOS_RELEASE_VERSION=0.2.2.3\n"
+ "CHROMEOS_RELEASE_TRXCK=footrack"));
UpdateCheckParams out1;
EXPECT_TRUE(DoTest(false, &out1));
string machine_id;
« no previous file with comments | « src/platform/update_engine/omaha_request_prep_action.cc ('k') | src/platform/update_engine/postinstall_runner_action.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698