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

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

Issue 1719363002: Collect information about failing histogram factory calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 9 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
« no previous file with comments | « base/metrics/statistics_recorder.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 121 }
122 break; 122 break;
123 } 123 }
124 } 124 }
125 EXPECT_LT(j, histograms.size()); 125 EXPECT_LT(j, histograms.size());
126 } 126 }
127 } 127 }
128 128
129 } // anonymous namespace 129 } // anonymous namespace
130 130
131 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Metrics) { 131 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, DISABLED_Metrics) {
132 base::UserActionTester user_action_tester; 132 base::UserActionTester user_action_tester;
133 133
134 base::FieldTrialList::CreateFieldTrial("apitestfieldtrial2", "group1"); 134 base::FieldTrialList::CreateFieldTrial("apitestfieldtrial2", "group1");
135 135
136 std::map<std::string, std::string> params; 136 std::map<std::string, std::string> params;
137 params["a"] = "aa"; 137 params["a"] = "aa";
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
« no previous file with comments | « base/metrics/statistics_recorder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698