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

Side by Side Diff: content/renderer/media/rtc_peer_connection_handler_unittest.cc

Issue 2302873004: Renamed WebRTCStats.h to WebRTCLegacyStats.h and cleaned it up (Closed)
Patch Set: Fixed compile error Created 4 years, 3 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/renderer/media/rtc_peer_connection_handler.h" 5 #include "content/renderer/media/rtc_peer_connection_handler.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 message_loop->task_runner()->PostTask(FROM_HERE, quit_closure); 66 message_loop->task_runner()->PostTask(FROM_HERE, quit_closure);
67 } 67 }
68 68
69 class MockRTCStatsResponse : public LocalRTCStatsResponse { 69 class MockRTCStatsResponse : public LocalRTCStatsResponse {
70 public: 70 public:
71 MockRTCStatsResponse() 71 MockRTCStatsResponse()
72 : report_count_(0), 72 : report_count_(0),
73 statistic_count_(0) { 73 statistic_count_(0) {
74 } 74 }
75 75
76 void addStats(const blink::WebRTCStats& stats) override { 76 void addStats(const blink::WebRTCLegacyStats& stats) override {
77 ++report_count_; 77 ++report_count_;
78 for (std::unique_ptr<blink::WebRTCStatsMemberIterator> member( 78 for (std::unique_ptr<blink::WebRTCLegacyStatsMemberIterator> member(
79 stats.iterator()); 79 stats.iterator());
80 !member->isEnd(); member->next()) { 80 !member->isEnd(); member->next()) {
81 ++statistic_count_; 81 ++statistic_count_;
82 } 82 }
83 } 83 }
84 84
85 int report_count() const { return report_count_; } 85 int report_count() const { return report_count_; }
86 86
87 private: 87 private:
88 int report_count_; 88 int report_count_;
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1058 testing::Ref(tracks[0]))); 1058 testing::Ref(tracks[0])));
1059 1059
1060 std::unique_ptr<blink::WebRTCDTMFSenderHandler> sender( 1060 std::unique_ptr<blink::WebRTCDTMFSenderHandler> sender(
1061 pc_handler_->createDTMFSender(tracks[0])); 1061 pc_handler_->createDTMFSender(tracks[0]));
1062 EXPECT_TRUE(sender.get()); 1062 EXPECT_TRUE(sender.get());
1063 1063
1064 StopAllTracks(local_stream); 1064 StopAllTracks(local_stream);
1065 } 1065 }
1066 1066
1067 } // namespace content 1067 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698