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

Side by Side Diff: webrtc/logging/rtc_event_log/rtc_event_log_unittest.cc

Issue 2380683005: Moved RtcEventLog files from call/ to logging/ (new top level dir) (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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
11 #include <map> 11 #include <map>
12 #include <memory> 12 #include <memory>
13 #include <string> 13 #include <string>
14 #include <utility> 14 #include <utility>
15 #include <vector> 15 #include <vector>
16 16
17 #include "webrtc/base/buffer.h" 17 #include "webrtc/base/buffer.h"
18 #include "webrtc/base/checks.h" 18 #include "webrtc/base/checks.h"
19 #include "webrtc/base/random.h" 19 #include "webrtc/base/random.h"
20 #include "webrtc/call.h" 20 #include "webrtc/call.h"
21 #include "webrtc/call/rtc_event_log.h" 21 #include "webrtc/logging/rtc_event_log/rtc_event_log.h"
22 #include "webrtc/call/rtc_event_log_parser.h" 22 #include "webrtc/logging/rtc_event_log/rtc_event_log_parser.h"
23 #include "webrtc/call/rtc_event_log_unittest_helper.h" 23 #include "webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.h"
24 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h" 24 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet.h"
25 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/sender_report.h" 25 #include "webrtc/modules/rtp_rtcp/source/rtcp_packet/sender_report.h"
26 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h" 26 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extension.h"
27 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h" 27 #include "webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h"
28 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h" 28 #include "webrtc/modules/rtp_rtcp/source/rtp_packet_to_send.h"
29 #include "webrtc/system_wrappers/include/clock.h" 29 #include "webrtc/system_wrappers/include/clock.h"
30 #include "webrtc/test/gtest.h" 30 #include "webrtc/test/gtest.h"
31 #include "webrtc/test/test_suite.h" 31 #include "webrtc/test/test_suite.h"
32 #include "webrtc/test/testsupport/fileutils.h" 32 #include "webrtc/test/testsupport/fileutils.h"
33 33
34 // Files generated at build-time by the protobuf compiler. 34 // Files generated at build-time by the protobuf compiler.
35 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD 35 #ifdef WEBRTC_ANDROID_PLATFORM_BUILD
36 #include "external/webrtc/webrtc/call/rtc_event_log.pb.h" 36 #include "external/webrtc/webrtc/logging/rtc_event_log/rtc_event_log.pb.h"
37 #else 37 #else
38 #include "webrtc/call/rtc_event_log.pb.h" 38 #include "webrtc/logging/rtc_event_log/rtc_event_log.pb.h"
39 #endif 39 #endif
40 40
41 namespace webrtc { 41 namespace webrtc {
42 42
43 namespace { 43 namespace {
44 44
45 const RTPExtensionType kExtensionTypes[] = { 45 const RTPExtensionType kExtensionTypes[] = {
46 RTPExtensionType::kRtpExtensionTransmissionTimeOffset, 46 RTPExtensionType::kRtpExtensionTransmissionTimeOffset,
47 RTPExtensionType::kRtpExtensionAudioLevel, 47 RTPExtensionType::kRtpExtensionAudioLevel,
48 RTPExtensionType::kRtpExtensionAbsoluteSendTime, 48 RTPExtensionType::kRtpExtensionAbsoluteSendTime,
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 MediaType::VIDEO, rtcp_packet.data(), 451 MediaType::VIDEO, rtcp_packet.data(),
452 rtcp_packet.size()); 452 rtcp_packet.size());
453 453
454 RtcEventLogTestHelper::VerifyLogEndEvent(parsed_log, 3); 454 RtcEventLogTestHelper::VerifyLogEndEvent(parsed_log, 3);
455 455
456 // Clean up temporary file - can be pretty slow. 456 // Clean up temporary file - can be pretty slow.
457 remove(temp_filename.c_str()); 457 remove(temp_filename.c_str());
458 } 458 }
459 459
460 } // namespace webrtc 460 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/logging/rtc_event_log/rtc_event_log_parser.cc ('k') | webrtc/logging/rtc_event_log/rtc_event_log_unittest_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698