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

Side by Side Diff: components/variations/variations_associated_data_unittest.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/variations/variations_associated_data.h" 5 #include "components/variations/variations_associated_data.h"
6 6
7 #include "base/macros.h"
7 #include "base/metrics/field_trial.h" 8 #include "base/metrics/field_trial.h"
8 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
9 10
10 namespace variations { 11 namespace variations {
11 12
12 namespace { 13 namespace {
13 14
14 const VariationID TEST_VALUE_A = 3300200; 15 const VariationID TEST_VALUE_A = 3300200;
15 const VariationID TEST_VALUE_B = 3300201; 16 const VariationID TEST_VALUE_B = 3300201;
16 17
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
339 scoped_refptr<base::FieldTrial> trial( 340 scoped_refptr<base::FieldTrial> trial(
340 CreateFieldTrial(kTrialName, 100, "A", NULL)); 341 CreateFieldTrial(kTrialName, 100, "A", NULL));
341 ASSERT_FALSE(base::FieldTrialList::IsTrialActive(kTrialName)); 342 ASSERT_FALSE(base::FieldTrialList::IsTrialActive(kTrialName));
342 343
343 std::map<std::string, std::string> params; 344 std::map<std::string, std::string> params;
344 EXPECT_EQ(std::string(), GetVariationParamValue(kTrialName, "x")); 345 EXPECT_EQ(std::string(), GetVariationParamValue(kTrialName, "x"));
345 ASSERT_TRUE(base::FieldTrialList::IsTrialActive(kTrialName)); 346 ASSERT_TRUE(base::FieldTrialList::IsTrialActive(kTrialName));
346 } 347 }
347 348
348 } // namespace variations 349 } // namespace variations
OLDNEW
« no previous file with comments | « components/variations/variations_associated_data.cc ('k') | components/variations/variations_http_header_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698