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

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

Issue 17945002: Make --force-fieldtrials not activate them in the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/search/search_unittest.cc » ('j') | 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 <map> 5 #include <map>
6 6
7 #include "base/metrics/field_trial.h" 7 #include "base/metrics/field_trial.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/metrics/statistics_recorder.h" 9 #include "base/metrics/statistics_recorder.h"
10 #include "chrome/browser/extensions/extension_apitest.h" 10 #include "chrome/browser/extensions/extension_apitest.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 EXPECT_LT(j, histograms.size()); 121 EXPECT_LT(j, histograms.size());
122 } 122 }
123 } 123 }
124 124
125 } // anonymous namespace 125 } // anonymous namespace
126 126
127 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Metrics) { 127 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, Metrics) {
128 UserActionObserver observer; 128 UserActionObserver observer;
129 129
130 base::FieldTrialList::CreateTrialsFromString("apitestfieldtrial2/group1/"); 130 base::FieldTrialList::CreateFieldTrial("apitestfieldtrial2", "group1");
131 131
132 ASSERT_TRUE(RunComponentExtensionTest("metrics")) << message_; 132 ASSERT_TRUE(RunComponentExtensionTest("metrics")) << message_;
133 133
134 observer.ValidateUserActions(g_user_actions, arraysize(g_user_actions)); 134 observer.ValidateUserActions(g_user_actions, arraysize(g_user_actions));
135 ValidateHistograms(g_histograms, arraysize(g_histograms)); 135 ValidateHistograms(g_histograms, arraysize(g_histograms));
136 } 136 }
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/search/search_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698