OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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 COMPONENTS_PAGE_LOAD_METRICS_RENDERER_FAKE_PAGE_TIMING_METRICS_IPC_SENDE
R_H_ | 5 #ifndef CHROME_RENDERER_PAGE_LOAD_METRICS_FAKE_PAGE_TIMING_METRICS_IPC_SENDER_H_ |
6 #define COMPONENTS_PAGE_LOAD_METRICS_RENDERER_FAKE_PAGE_TIMING_METRICS_IPC_SENDE
R_H_ | 6 #define CHROME_RENDERER_PAGE_LOAD_METRICS_FAKE_PAGE_TIMING_METRICS_IPC_SENDER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "components/page_load_metrics/common/page_load_timing.h" | 10 #include "chrome/common/page_load_metrics/page_load_timing.h" |
11 #include "ipc/ipc_sender.h" | 11 #include "ipc/ipc_sender.h" |
12 | 12 |
13 namespace IPC { | 13 namespace IPC { |
14 class Message; | 14 class Message; |
15 } | 15 } |
16 | 16 |
17 namespace page_load_metrics { | 17 namespace page_load_metrics { |
18 | 18 |
19 // IPC::Sender implementation for use in tests. Allows for setting and verifying | 19 // IPC::Sender implementation for use in tests. Allows for setting and verifying |
20 // basic expectations when sending PageLoadTiming IPCs. By default, | 20 // basic expectations when sending PageLoadTiming IPCs. By default, |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 private: | 63 private: |
64 void OnTimingUpdated(const PageLoadTiming& timing, PageLoadMetadata metadata); | 64 void OnTimingUpdated(const PageLoadTiming& timing, PageLoadMetadata metadata); |
65 | 65 |
66 std::vector<PageLoadTiming> expected_timings_; | 66 std::vector<PageLoadTiming> expected_timings_; |
67 std::vector<PageLoadTiming> actual_timings_; | 67 std::vector<PageLoadTiming> actual_timings_; |
68 }; | 68 }; |
69 | 69 |
70 } // namespace page_load_metrics | 70 } // namespace page_load_metrics |
71 | 71 |
72 #endif // COMPONENTS_PAGE_LOAD_METRICS_RENDERER_FAKE_PAGE_TIMING_METRICS_IPC_SE
NDER_H_ | 72 #endif // CHROME_RENDERER_PAGE_LOAD_METRICS_FAKE_PAGE_TIMING_METRICS_IPC_SENDER
_H_ |
OLD | NEW |