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

Side by Side Diff: chrome/browser/extensions/extension_metrics_apitest.cc

Issue 5512009: Remove unneeded browser_process.h includes. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix linux build Created 10 years 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/histogram.h" 7 #include "base/metrics/histogram.h"
8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/extensions/extension_apitest.h" 8 #include "chrome/browser/extensions/extension_apitest.h"
10 #include "chrome/common/chrome_switches.h" 9 #include "chrome/common/chrome_switches.h"
11 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
12 #include "chrome/common/notification_registrar.h" 11 #include "chrome/common/notification_registrar.h"
13 12
14 namespace { 13 namespace {
15 14
16 // The tests that are run by this extension are expected to record the following 15 // The tests that are run by this extension are expected to record the following
17 // user actions, with the specified counts. If the tests in test.js are 16 // user actions, with the specified counts. If the tests in test.js are
18 // modified, this array may need to be updated. 17 // modified, this array may need to be updated.
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 146
148 ASSERT_TRUE(RunExtensionTest("metrics")) << message_; 147 ASSERT_TRUE(RunExtensionTest("metrics")) << message_;
149 const Extension* extension = GetSingleLoadedExtension(); 148 const Extension* extension = GetSingleLoadedExtension();
150 ASSERT_TRUE(extension); 149 ASSERT_TRUE(extension);
151 150
152 observer.ValidateUserActions(extension, 151 observer.ValidateUserActions(extension,
153 g_user_actions, 152 g_user_actions,
154 arraysize(g_user_actions)); 153 arraysize(g_user_actions));
155 ValidateHistograms(extension, g_histograms, arraysize(g_histograms)); 154 ValidateHistograms(extension, g_histograms, arraysize(g_histograms));
156 } 155 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698