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

Side by Side Diff: chrome/browser/page_load_metrics/observers/page_load_metrics_observer_test_harness.h

Issue 2177743002: Migrate page_load_metrics out of components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: migrate page_load_metrics_messages to common message generator Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PAGE_LOAD_METRICS_OBSERVER_TE ST_HARNESS_H_ 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PAGE_LOAD_METRICS_OBSERVER_TE ST_HARNESS_H_
6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PAGE_LOAD_METRICS_OBSERVER_TE ST_HARNESS_H_ 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PAGE_LOAD_METRICS_OBSERVER_TE ST_HARNESS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/test/histogram_tester.h" 9 #include "base/test/histogram_tester.h"
10 #include "chrome/browser/page_load_metrics/metrics_web_contents_observer.h"
10 #include "chrome/test/base/chrome_render_view_host_test_harness.h" 11 #include "chrome/test/base/chrome_render_view_host_test_harness.h"
11 #include "components/page_load_metrics/browser/metrics_web_contents_observer.h"
12 #include "content/public/test/web_contents_tester.h" 12 #include "content/public/test/web_contents_tester.h"
13 #include "third_party/WebKit/public/web/WebInputEvent.h" 13 #include "third_party/WebKit/public/web/WebInputEvent.h"
14 #include "ui/base/page_transition_types.h" 14 #include "ui/base/page_transition_types.h"
15 15
16 namespace page_load_metrics { 16 namespace page_load_metrics {
17 17
18 // This class can be used to drive tests of PageLoadMetricsObservers. To hook up 18 // This class can be used to drive tests of PageLoadMetricsObservers. To hook up
19 // an observer, override RegisterObservers and call tracker->AddObserver. This 19 // an observer, override RegisterObservers and call tracker->AddObserver. This
20 // will attach the observer to all main frame navigations. 20 // will attach the observer to all main frame navigations.
21 class PageLoadMetricsObserverTestHarness 21 class PageLoadMetricsObserverTestHarness
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 private: 59 private:
60 base::HistogramTester histogram_tester_; 60 base::HistogramTester histogram_tester_;
61 MetricsWebContentsObserver* observer_; 61 MetricsWebContentsObserver* observer_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(PageLoadMetricsObserverTestHarness); 63 DISALLOW_COPY_AND_ASSIGN(PageLoadMetricsObserverTestHarness);
64 }; 64 };
65 65
66 } // namespace page_load_metrics 66 } // namespace page_load_metrics
67 67
68 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PAGE_LOAD_METRICS_OBSERVER _TEST_HARNESS_H_ 68 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_OBSERVERS_PAGE_LOAD_METRICS_OBSERVER _TEST_HARNESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698