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

Side by Side Diff: chrome/browser/media/webrtc_browsertest_base.cc

Issue 2186853002: WebRTCStats added, retaining type info when surfacing WebRTC stats into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed phoglund's comments Created 4 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/browser/media/webrtc_browsertest_base.h" 5 #include "chrome/browser/media/webrtc_browsertest_base.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 } 478 }
479 479
480 void WebRtcTestBase::GenerateAndCloneCertificate( 480 void WebRtcTestBase::GenerateAndCloneCertificate(
481 content::WebContents* tab, const std::string& keygen_algorithm) const { 481 content::WebContents* tab, const std::string& keygen_algorithm) const {
482 std::string javascript = base::StringPrintf( 482 std::string javascript = base::StringPrintf(
483 "generateAndCloneCertificate(%s)", keygen_algorithm.c_str()); 483 "generateAndCloneCertificate(%s)", keygen_algorithm.c_str());
484 std::string response = ExecuteJavascript(javascript, tab); 484 std::string response = ExecuteJavascript(javascript, tab);
485 EXPECT_EQ("ok-generated-and-cloned", response) << "Failed to generate and " 485 EXPECT_EQ("ok-generated-and-cloned", response) << "Failed to generate and "
486 "clone certificate: " << response; 486 "clone certificate: " << response;
487 } 487 }
488
489 void WebRtcTestBase::VerifyStatsGenerated(content::WebContents* tab) const {
490 std::string response = ExecuteJavascript("verifyStatsGenerated()", tab);
491 EXPECT_EQ("ok-got-stats", response) << "Failed to get stats: " << response;
tommi (sloooow) - chröme 2016/07/27 18:38:40 doesn't EXPECT_EQ already print out the contents o
hbos_chromium 2016/07/28 08:27:45 You're right, fixed here and above while I'm at it
492 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698