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

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

Issue 1548153002: Switch to standard integer types in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 "chrome/installer/gcapi/gcapi_omaha_experiment.h" 5 #include "chrome/installer/gcapi/gcapi_omaha_experiment.h"
6 6
7 #include <stdint.h>
8
7 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/installer/gcapi/gcapi.h" 10 #include "chrome/installer/gcapi/gcapi.h"
9 #include "chrome/installer/gcapi/gcapi_test_registry_overrider.h" 11 #include "chrome/installer/gcapi/gcapi_test_registry_overrider.h"
10 #include "chrome/installer/util/google_update_constants.h" 12 #include "chrome/installer/util/google_update_constants.h"
11 #include "chrome/installer/util/google_update_settings.h" 13 #include "chrome/installer/util/google_update_settings.h"
12 #include "components/variations/variations_experiment_util.h" 14 #include "components/variations/variations_experiment_util.h"
13 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
14 16
15 using base::ASCIIToUTF16; 17 using base::ASCIIToUTF16;
16 18
17 namespace { 19 namespace {
18 20
19 const wchar_t kBrand[] = L"ABCD"; 21 const wchar_t kBrand[] = L"ABCD";
20 const uint16 kUserLevel = GCAPI_INVOKED_STANDARD_SHELL; 22 const uint16_t kUserLevel = GCAPI_INVOKED_STANDARD_SHELL;
21 23
22 const wchar_t kSomeExperiments[] = L"myexp=1|Aug 2;yourexp=2|Sep 5"; 24 const wchar_t kSomeExperiments[] = L"myexp=1|Aug 2;yourexp=2|Sep 5";
23 const wchar_t kSomeOtherExperiments[] = L"anotherexp=joe|Jun 7 2008"; 25 const wchar_t kSomeOtherExperiments[] = L"anotherexp=joe|Jun 7 2008";
24 const wchar_t kSomeMoreExperiments[] = L"moreexp=foo|Jul 31 1999"; 26 const wchar_t kSomeMoreExperiments[] = L"moreexp=foo|Jul 31 1999";
25 27
26 class GCAPIOmahaExperimentTest : public ::testing::Test { 28 class GCAPIOmahaExperimentTest : public ::testing::Test {
27 protected: 29 protected:
28 GCAPIOmahaExperimentTest() 30 GCAPIOmahaExperimentTest()
29 : brand_(kBrand), 31 : brand_(kBrand),
30 reactivation_label_(gcapi_internals::GetGCAPIExperimentLabel( 32 reactivation_label_(gcapi_internals::GetGCAPIExperimentLabel(
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 base::string16 expected_labels(kSomeExperiments); 177 base::string16 expected_labels(kSomeExperiments);
176 expected_labels += variations::kExperimentLabelSeparator; 178 expected_labels += variations::kExperimentLabelSeparator;
177 expected_labels.append(gcapi_internals::kReactivationLabel); 179 expected_labels.append(gcapi_internals::kReactivationLabel);
178 expected_labels.append(kSomeOtherExperiments); 180 expected_labels.append(kSomeOtherExperiments);
179 expected_labels += variations::kExperimentLabelSeparator; 181 expected_labels += variations::kExperimentLabelSeparator;
180 expected_labels.append(reactivation_label_); 182 expected_labels.append(reactivation_label_);
181 VerifyExperimentLabels(expected_labels); 183 VerifyExperimentLabels(expected_labels);
182 } 184 }
183 185
184 } // namespace 186 } // namespace
OLDNEW
« no previous file with comments | « chrome/installer/gcapi/gcapi_omaha_experiment.cc ('k') | chrome/installer/gcapi/gcapi_reactivation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698