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

Side by Side Diff: chrome/browser/extensions/api/metrics_private/metrics_apitest.cc

Issue 2299993004: Migrate chrome/browser files to histogram_macros.h includes. (Closed)
Patch Set: 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 (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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/metrics/field_trial.h" 10 #include "base/metrics/field_trial.h"
11 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram_macros.h"
12 #include "base/metrics/statistics_recorder.h" 12 #include "base/metrics/statistics_recorder.h"
13 #include "base/test/user_action_tester.h" 13 #include "base/test/user_action_tester.h"
14 #include "chrome/browser/extensions/extension_apitest.h" 14 #include "chrome/browser/extensions/extension_apitest.h"
15 #include "components/variations/variations_associated_data.h" 15 #include "components/variations/variations_associated_data.h"
16 16
17 namespace { 17 namespace {
18 18
19 // The tests that are run by this extension are expected to record the following 19 // The tests that are run by this extension are expected to record the following
20 // user actions, with the specified counts. If the tests in test.js are 20 // user actions, with the specified counts. If the tests in test.js are
21 // modified, this array may need to be updated. 21 // modified, this array may need to be updated.
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 params["b"] = "bb"; 138 params["b"] = "bb";
139 ASSERT_TRUE(variations::AssociateVariationParams( 139 ASSERT_TRUE(variations::AssociateVariationParams(
140 "apitestfieldtrial2", "group1", params)); 140 "apitestfieldtrial2", "group1", params));
141 141
142 ASSERT_TRUE(RunComponentExtensionTest("metrics")) << message_; 142 ASSERT_TRUE(RunComponentExtensionTest("metrics")) << message_;
143 143
144 ValidateUserActions(user_action_tester, g_user_actions, 144 ValidateUserActions(user_action_tester, g_user_actions,
145 arraysize(g_user_actions)); 145 arraysize(g_user_actions));
146 ValidateHistograms(g_histograms, arraysize(g_histograms)); 146 ValidateHistograms(g_histograms, arraysize(g_histograms));
147 } 147 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698