aboutsummaryrefslogtreecommitdiff
path: root/talk/app/webrtc/test
diff options
context:
space:
mode:
authortommi@webrtc.org <tommi@webrtc.org>2015-01-19 16:49:33 +0000
committertommi@webrtc.org <tommi@webrtc.org>2015-01-19 16:49:33 +0000
commit5b76fd79dfbfa78f1b034c0698771298cd15f175 (patch)
tree8a491babec0d4eec9ed92a012f728fdcfa5391f2 /talk/app/webrtc/test
parent474e36e6232a6d85238023acdd5067953f9348d2 (diff)
downloadwebrtc-5b76fd79dfbfa78f1b034c0698771298cd15f175.tar.gz
Update StatsCollector's interface in preparation of more changes.
This CL is the first of three and this one contains interface additions (not deletion for backwards compatibility) as well as a few necessary updates to internal code. The next CL will be in Chromium to consume the new new methods and remove dependency on the old ones. The third CL will then contain the bulk of the updates and improvements and be compatible with this interface. BUG=2822 R=perkj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/36829004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@8095 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'talk/app/webrtc/test')
-rw-r--r--talk/app/webrtc/test/mockpeerconnectionobservers.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/talk/app/webrtc/test/mockpeerconnectionobservers.h b/talk/app/webrtc/test/mockpeerconnectionobservers.h
index 56ca397f9d..5dbf92b57e 100644
--- a/talk/app/webrtc/test/mockpeerconnectionobservers.h
+++ b/talk/app/webrtc/test/mockpeerconnectionobservers.h
@@ -174,9 +174,9 @@ class MockStatsObserver : public webrtc::StatsObserver {
bool GetIntValue(const StatsReport* report,
StatsReport::StatsValueName name,
int* value) {
- for (const auto& v : report->values) {
- if (v.name == name) {
- *value = rtc::FromString<int>(v.value);
+ for (const auto& v : report->values()) {
+ if (v->name == name) {
+ *value = rtc::FromString<int>(v->value);
return true;
}
}