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

Unified Diff: chrome/installer/gcapi/gcapi_reactivation_test.cc

Issue 9704022: This patch modifies some aspects of GCAPI in support of the new Chrome reactivation functions. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 9 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: chrome/installer/gcapi/gcapi_reactivation_test.cc
===================================================================
--- chrome/installer/gcapi/gcapi_reactivation_test.cc (revision 125017)
+++ chrome/installer/gcapi/gcapi_reactivation_test.cc (working copy)
@@ -133,7 +133,7 @@
EXPECT_TRUE(HasBeenReactivatedByBrandCodes(check_codes));
check_codes.erase(check_codes.begin());
- EXPECT_FALSE(HasBeenReactivatedByBrandCodes(check_codes));
+ EXPECT_TRUE(HasBeenReactivatedByBrandCodes(check_codes));
}
TEST_F(GCAPIReactivationTest, CanOfferReactivation_Basic) {
@@ -223,18 +223,18 @@
&error));
EXPECT_EQ(REACTIVATE_ERROR_ALREADY_REACTIVATED, error);
- // Should still be able to reactivate under other brands:
- EXPECT_TRUE(ReactivateChrome(L"MAMA", arraysize(previous_brands),
+ // Should not be able to reactivate under other brands:
+ EXPECT_FALSE(ReactivateChrome(L"MAMA", arraysize(previous_brands),
previous_brands, GCAPI_INVOKED_STANDARD_SHELL,
&error));
- EXPECT_EQ(L"MAMA", GetReactivationString(HKEY_CURRENT_USER));
+ EXPECT_EQ(L"GAGA", GetReactivationString(HKEY_CURRENT_USER));
// Validate that previous_brands are rejected:
EXPECT_FALSE(ReactivateChrome(L"PFFT", arraysize(previous_brands),
previous_brands, GCAPI_INVOKED_STANDARD_SHELL,
&error));
EXPECT_EQ(REACTIVATE_ERROR_ALREADY_REACTIVATED, error);
- EXPECT_EQ(L"MAMA", GetReactivationString(HKEY_CURRENT_USER));
+ EXPECT_EQ(L"GAGA", GetReactivationString(HKEY_CURRENT_USER));
}
TEST_F(GCAPIReactivationTest, ExperimentLabelCheck) {
« chrome/installer/gcapi/gcapi_reactivation.cc ('K') | « chrome/installer/gcapi/gcapi_reactivation.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698