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

Side by Side Diff: chrome/browser/metrics/metrics_service_browsertest.cc

Issue 220253002: Add net/base/filename_util.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/history/redirect_browsertest.cc ('k') | chrome/browser/ui/browser.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 // Tests the MetricsService stat recording to make sure that the numbers are 5 // Tests the MetricsService stat recording to make sure that the numbers are
6 // what we expect. 6 // what we expect.
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/path_service.h" 12 #include "base/path_service.h"
13 #include "base/prefs/pref_service.h" 13 #include "base/prefs/pref_service.h"
14 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/metrics/metrics_service.h" 15 #include "chrome/browser/metrics/metrics_service.h"
16 #include "chrome/browser/ui/browser.h" 16 #include "chrome/browser/ui/browser.h"
17 #include "chrome/browser/ui/tabs/tab_strip_model.h" 17 #include "chrome/browser/ui/tabs/tab_strip_model.h"
18 #include "chrome/common/chrome_paths.h" 18 #include "chrome/common/chrome_paths.h"
19 #include "chrome/common/chrome_switches.h" 19 #include "chrome/common/chrome_switches.h"
20 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
21 #include "chrome/common/url_constants.h" 21 #include "chrome/common/url_constants.h"
22 #include "chrome/test/base/in_process_browser_test.h" 22 #include "chrome/test/base/in_process_browser_test.h"
23 #include "chrome/test/base/ui_test_utils.h" 23 #include "chrome/test/base/ui_test_utils.h"
24 #include "content/public/test/browser_test_utils.h" 24 #include "content/public/test/browser_test_utils.h"
25 #include "net/base/net_util.h" 25 #include "net/base/filename_util.h"
26 #include "ui/base/window_open_disposition.h" 26 #include "ui/base/window_open_disposition.h"
27 #include "url/gurl.h" 27 #include "url/gurl.h"
28 28
29 class MetricsServiceBrowserTest : public InProcessBrowserTest { 29 class MetricsServiceBrowserTest : public InProcessBrowserTest {
30 public: 30 public:
31 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 31 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
32 // Enable the metrics service for testing (in recording-only mode). 32 // Enable the metrics service for testing (in recording-only mode).
33 command_line->AppendSwitch(switches::kMetricsRecordingOnly); 33 command_line->AppendSwitch(switches::kMetricsRecordingOnly);
34 } 34 }
35 35
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 IN_PROC_BROWSER_TEST_F(MetricsServiceReportingTest, 126 IN_PROC_BROWSER_TEST_F(MetricsServiceReportingTest,
127 CheckHighEntropySourceUsed) { 127 CheckHighEntropySourceUsed) {
128 // Since the full metrics service runs in this test, we expect that 128 // Since the full metrics service runs in this test, we expect that
129 // MetricsService returns the full entropy source at some point during 129 // MetricsService returns the full entropy source at some point during
130 // BrowserMain startup. 130 // BrowserMain startup.
131 ASSERT_TRUE(g_browser_process->metrics_service()); 131 ASSERT_TRUE(g_browser_process->metrics_service());
132 EXPECT_EQ(MetricsService::LAST_ENTROPY_HIGH, 132 EXPECT_EQ(MetricsService::LAST_ENTROPY_HIGH,
133 g_browser_process->metrics_service()->entropy_source_returned()); 133 g_browser_process->metrics_service()->entropy_source_returned());
134 } 134 }
OLDNEW
« no previous file with comments | « chrome/browser/history/redirect_browsertest.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698