| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 const rtclog::BweProbeResult& bwe_event = event.probe_result(); | 563 const rtclog::BweProbeResult& bwe_event = event.probe_result(); |
| 564 ASSERT_TRUE(bwe_event.has_id()); | 564 ASSERT_TRUE(bwe_event.has_id()); |
| 565 EXPECT_EQ(id, bwe_event.id()); | 565 EXPECT_EQ(id, bwe_event.id()); |
| 566 ASSERT_TRUE(bwe_event.has_result()); | 566 ASSERT_TRUE(bwe_event.has_result()); |
| 567 EXPECT_EQ(GetProbeResultType(failure_reason), bwe_event.result()); | 567 EXPECT_EQ(GetProbeResultType(failure_reason), bwe_event.result()); |
| 568 ASSERT_FALSE(bwe_event.has_bitrate_bps()); | 568 ASSERT_FALSE(bwe_event.has_bitrate_bps()); |
| 569 | 569 |
| 570 // TODO(philipel): Verify the parser when parsing has been implemented. | 570 // TODO(philipel): Verify the parser when parsing has been implemented. |
| 571 } | 571 } |
| 572 | 572 |
| 573 void RtcEventLogTestHelper::VerifyLogHostLookupEvent( |
| 574 const ParsedRtcEventLog& parsed_log, |
| 575 size_t index, |
| 576 int error, |
| 577 int64_t host_lookup_time_ms) { |
| 578 const rtclog::Event& event = parsed_log.events_[index]; |
| 579 ASSERT_TRUE(IsValidBasicEvent(event)); |
| 580 EXPECT_EQ(rtclog::Event::HOST_LOOKUP_EVENT, event.type()); |
| 581 |
| 582 const rtclog::HostLookupResult& lookup_event = event.host_lookup_result(); |
| 583 ASSERT_TRUE(lookup_event.has_error()); |
| 584 ASSERT_EQ(lookup_event.error(), error); |
| 585 ASSERT_TRUE(lookup_event.has_host_lookup_time_ms()); |
| 586 ASSERT_EQ(lookup_event.host_lookup_time_ms(), host_lookup_time_ms); |
| 587 |
| 588 int error_compare; |
| 589 int64_t host_lookup_time_ms_compare; |
| 590 parsed_log.GetHostLookup(index, &error_compare, &host_lookup_time_ms_compare); |
| 591 ASSERT_EQ(error, error_compare); |
| 592 ASSERT_EQ(host_lookup_time_ms, host_lookup_time_ms_compare); |
| 593 } |
| 594 |
| 573 } // namespace webrtc | 595 } // namespace webrtc |
| OLD | NEW |