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

Side by Side Diff: webrtc/pc/statscollector_unittest.cc

Issue 2969623003: Update includes for webrtc/{base => rtc_base} rename (2/3) (Closed)
Patch Set: Rebased onto 224e65939af87443addfc5bb500fbf434728bd1c and restored sorting in clock.cc Created 3 years, 5 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
« no previous file with comments | « webrtc/pc/statscollector.cc ('k') | webrtc/pc/test/androidtestinitializer.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 /* 1 /*
2 * Copyright 2014 The WebRTC project authors. All Rights Reserved. 2 * Copyright 2014 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 <stdio.h> 11 #include <stdio.h>
12 12
13 #include <algorithm> 13 #include <algorithm>
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/pc/statscollector.h" 16 #include "webrtc/pc/statscollector.h"
17 17
18 #include "webrtc/api/mediastreaminterface.h" 18 #include "webrtc/api/mediastreaminterface.h"
19 #include "webrtc/base/base64.h"
20 #include "webrtc/base/fakesslidentity.h"
21 #include "webrtc/base/gunit.h"
22 #include "webrtc/base/network.h"
23 #include "webrtc/base/stringencode.h"
24 #include "webrtc/logging/rtc_event_log/rtc_event_log.h" 19 #include "webrtc/logging/rtc_event_log/rtc_event_log.h"
25 #include "webrtc/media/base/fakemediaengine.h" 20 #include "webrtc/media/base/fakemediaengine.h"
26 #include "webrtc/media/base/test/mock_mediachannel.h" 21 #include "webrtc/media/base/test/mock_mediachannel.h"
27 #include "webrtc/pc/channelmanager.h" 22 #include "webrtc/pc/channelmanager.h"
28 #include "webrtc/pc/mediastream.h" 23 #include "webrtc/pc/mediastream.h"
29 #include "webrtc/pc/mediastreamtrack.h" 24 #include "webrtc/pc/mediastreamtrack.h"
30 #include "webrtc/pc/peerconnection.h" 25 #include "webrtc/pc/peerconnection.h"
31 #include "webrtc/pc/peerconnectionfactory.h" 26 #include "webrtc/pc/peerconnectionfactory.h"
32 #include "webrtc/pc/test/fakedatachannelprovider.h" 27 #include "webrtc/pc/test/fakedatachannelprovider.h"
33 #include "webrtc/pc/test/fakevideotracksource.h" 28 #include "webrtc/pc/test/fakevideotracksource.h"
34 #include "webrtc/pc/test/mock_peerconnection.h" 29 #include "webrtc/pc/test/mock_peerconnection.h"
35 #include "webrtc/pc/test/mock_webrtcsession.h" 30 #include "webrtc/pc/test/mock_webrtcsession.h"
36 #include "webrtc/pc/videotrack.h" 31 #include "webrtc/pc/videotrack.h"
32 #include "webrtc/rtc_base/base64.h"
33 #include "webrtc/rtc_base/fakesslidentity.h"
34 #include "webrtc/rtc_base/gunit.h"
35 #include "webrtc/rtc_base/network.h"
36 #include "webrtc/rtc_base/stringencode.h"
37 #include "webrtc/test/gmock.h" 37 #include "webrtc/test/gmock.h"
38 #include "webrtc/test/gtest.h" 38 #include "webrtc/test/gtest.h"
39 39
40 using testing::_; 40 using testing::_;
41 using testing::DoAll; 41 using testing::DoAll;
42 using testing::Field; 42 using testing::Field;
43 using testing::Invoke; 43 using testing::Invoke;
44 using testing::Return; 44 using testing::Return;
45 using testing::ReturnNull; 45 using testing::ReturnNull;
46 using testing::ReturnRef; 46 using testing::ReturnRef;
(...skipping 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after
2101 stats.UpdateStats(PeerConnectionInterface::kStatsOutputLevelStandard); 2101 stats.UpdateStats(PeerConnectionInterface::kStatsOutputLevelStandard);
2102 stats.GetStats(NULL, &reports); 2102 stats.GetStats(NULL, &reports);
2103 EXPECT_EQ(rtc::ToString(video_receiver_info.frames_decoded), 2103 EXPECT_EQ(rtc::ToString(video_receiver_info.frames_decoded),
2104 ExtractSsrcStatsValue(reports, 2104 ExtractSsrcStatsValue(reports,
2105 StatsReport::kStatsValueNameFramesDecoded)); 2105 StatsReport::kStatsValueNameFramesDecoded));
2106 EXPECT_EQ(rtc::ToString(*video_receiver_info.qp_sum), 2106 EXPECT_EQ(rtc::ToString(*video_receiver_info.qp_sum),
2107 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameQpSum)); 2107 ExtractSsrcStatsValue(reports, StatsReport::kStatsValueNameQpSum));
2108 } 2108 }
2109 2109
2110 } // namespace webrtc 2110 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/pc/statscollector.cc ('k') | webrtc/pc/test/androidtestinitializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698