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

Side by Side Diff: chrome/installer/gcapi/gcapi_reactivation_test.cc

Issue 1291763002: Componentize kExperimentLabelSeparator & BuildExperimentDateString. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try moving kExperimentLabels into the component to fix the build on Windows Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <string> 5 #include <string>
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "base/win/registry.h" 10 #include "base/win/registry.h"
11 #include "chrome/installer/gcapi/gcapi.h" 11 #include "chrome/installer/gcapi/gcapi.h"
12 #include "chrome/installer/gcapi/gcapi_omaha_experiment.h" 12 #include "chrome/installer/gcapi/gcapi_omaha_experiment.h"
13 #include "chrome/installer/gcapi/gcapi_reactivation.h" 13 #include "chrome/installer/gcapi/gcapi_reactivation.h"
14 #include "chrome/installer/gcapi/gcapi_test_registry_overrider.h" 14 #include "chrome/installer/gcapi/gcapi_test_registry_overrider.h"
15 #include "chrome/installer/util/google_update_constants.h" 15 #include "chrome/installer/util/google_update_constants.h"
16 #include "chrome/installer/util/google_update_experiment_util.h" 16 #include "components/variations/variations_experiment_util.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using base::Time; 19 using base::Time;
20 using base::TimeDelta; 20 using base::TimeDelta;
21 using base::win::RegKey; 21 using base::win::RegKey;
22 22
23 class GCAPIReactivationTest : public ::testing::Test { 23 class GCAPIReactivationTest : public ::testing::Test {
24 protected: 24 protected:
25 GCAPIReactivationTest() {} 25 GCAPIReactivationTest() {}
26 26
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 EXPECT_TRUE(SetLastRunTime(HKEY_CURRENT_USER, 201 EXPECT_TRUE(SetLastRunTime(HKEY_CURRENT_USER,
202 hkcu_last_run.ToInternalValue())); 202 hkcu_last_run.ToInternalValue()));
203 203
204 EXPECT_TRUE(ReactivateChrome(L"GAGA", 204 EXPECT_TRUE(ReactivateChrome(L"GAGA",
205 GCAPI_INVOKED_STANDARD_SHELL, 205 GCAPI_INVOKED_STANDARD_SHELL,
206 &error)); 206 &error));
207 EXPECT_EQ(L"GAGA", GetReactivationString(HKEY_CURRENT_USER)); 207 EXPECT_EQ(L"GAGA", GetReactivationString(HKEY_CURRENT_USER));
208 208
209 EXPECT_TRUE(HasExperimentLabels(HKEY_CURRENT_USER)); 209 EXPECT_TRUE(HasExperimentLabels(HKEY_CURRENT_USER));
210 } 210 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698