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

Side by Side Diff: chrome/browser/chromeos/hats/hats_finch_helper_unittest.cc

Issue 2321273003: Extend VariationParamsManager to support feature associations. (Closed)
Patch Set: Fixing windows build? Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "chrome/browser/chromeos/hats/hats_finch_helper.h" 5 #include "chrome/browser/chromeos/hats/hats_finch_helper.h"
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/test/scoped_feature_list.h" 10 #include "base/test/scoped_feature_list.h"
11 #include "chrome/common/chrome_features.h" 11 #include "chrome/common/chrome_features.h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 #include "chrome/test/base/testing_profile.h" 13 #include "chrome/test/base/testing_profile.h"
14 #include "components/prefs/pref_service.h" 14 #include "components/prefs/pref_service.h"
15 #include "components/variations/variations_associated_data.h" 15 #include "components/variations/variations_associated_data.h"
16 #include "components/variations/variations_params_manager.h"
16 #include "content/public/test/test_browser_thread_bundle.h" 17 #include "content/public/test/test_browser_thread_bundle.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 19
19 namespace chromeos { 20 namespace chromeos {
20 21
21 namespace { 22 namespace {
22 23
23 const char kGroupTesting[] = "Testing"; 24 const char kGroupTesting[] = "Testing";
24 const std::string kTrialName(features::kHappinessTrackingSystem.name); 25 const std::string kTrialName(features::kHappinessTrackingSystem.name);
25 26
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 2 * current_time.ToJsTime()); 169 2 * current_time.ToJsTime());
169 170
170 EXPECT_FALSE(pref_service->GetBoolean(prefs::kHatsDeviceIsSelected)); 171 EXPECT_FALSE(pref_service->GetBoolean(prefs::kHatsDeviceIsSelected));
171 EXPECT_NE(pref_service->GetInt64(prefs::kHatsSurveyCycleEndTimestamp), 172 EXPECT_NE(pref_service->GetInt64(prefs::kHatsSurveyCycleEndTimestamp),
172 initial_timestamp); 173 initial_timestamp);
173 EXPECT_NE(pref_service->GetInt64(prefs::kHatsLastInteractionTimestamp), 174 EXPECT_NE(pref_service->GetInt64(prefs::kHatsLastInteractionTimestamp),
174 initial_timestamp); 175 initial_timestamp);
175 } 176 }
176 177
177 } // namespace chromeos 178 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698