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

Side by Side Diff: components/previews/previews_experiments_unittest.cc

Issue 2335023002: Adding a previews IO-thread blacklist (Closed)
Patch Set: build.gn dependency on gurl Created 4 years, 3 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 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 "components/previews/previews_experiments.h" 5 #include "components/previews/previews_experiments.h"
6 6
7 #include "base/metrics/field_trial.h" 7 #include "base/metrics/field_trial.h"
8 #include "components/variations/variations_associated_data.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace { 11 namespace {
11 12
12 using PreviewsExperimentsTest = testing::Test; 13 using PreviewsExperimentsTest = testing::Test;
13 14
14 } // namespace 15 } // namespace
15 16
16 namespace previews { 17 namespace previews {
17 18
18 TEST_F(PreviewsExperimentsTest, TestFieldTrialOfflinePage) { 19 TEST_F(PreviewsExperimentsTest, TestFieldTrialOfflinePage) {
19 EXPECT_FALSE(IsIncludedInClientSidePreviewsExperimentsFieldTrial()); 20 EXPECT_FALSE(IsIncludedInClientSidePreviewsExperimentsFieldTrial());
20 EXPECT_FALSE(IsOfflinePreviewsEnabled()); 21 EXPECT_FALSE(IsOfflinePreviewsEnabled());
21 22
22 base::FieldTrialList field_trial_list(nullptr); 23 base::FieldTrialList field_trial_list(nullptr);
23 ASSERT_TRUE(EnableOfflinePreviewsForTesting()); 24 ASSERT_TRUE(EnableOfflinePreviewsForTesting());
24 25
25 EXPECT_TRUE(IsIncludedInClientSidePreviewsExperimentsFieldTrial()); 26 EXPECT_TRUE(IsIncludedInClientSidePreviewsExperimentsFieldTrial());
26 EXPECT_TRUE(IsOfflinePreviewsEnabled()); 27 EXPECT_TRUE(IsOfflinePreviewsEnabled());
28 variations::testing::ClearAllVariationParams();
27 } 29 }
28 30
29 } // namespace previews 31 } // namespace previews
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698