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

Unified Diff: chrome/browser/media/webrtc_browsertest_base.h

Issue 1962673002: WebRtcBrowserTest prep-CL for IndexedDB cloning of RTCCertificate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/media/webrtc_browsertest.cc ('k') | chrome/browser/media/webrtc_browsertest_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/webrtc_browsertest_base.h
diff --git a/chrome/browser/media/webrtc_browsertest_base.h b/chrome/browser/media/webrtc_browsertest_base.h
index c62546dee2c6a01818b5504007c2236f829ff2f4..affc105616444e5b2cb90ca254e9ab9b03692e34 100644
--- a/chrome/browser/media/webrtc_browsertest_base.h
+++ b/chrome/browser/media/webrtc_browsertest_base.h
@@ -105,12 +105,22 @@ class WebRtcTestBase : public InProcessBrowserTest {
// certificate.
void SetupPeerconnectionWithLocalStream(
content::WebContents* tab,
- std::string certificate_keygen_algorithm = kUseDefaultCertKeygen) const;
-
+ const std::string& certificate_keygen_algorithm =
+ kUseDefaultCertKeygen) const;
// Same as above but does not add the local stream.
void SetupPeerconnectionWithoutLocalStream(
content::WebContents* tab,
- std::string certificate_keygen_algorithm = kUseDefaultCertKeygen) const;
+ const std::string& certificate_keygen_algorithm =
+ kUseDefaultCertKeygen) const;
+ // Same as |SetupPeerconnectionWithLocalStream| except a certificate is
+ // specified, which is a reference to an |RTCCertificate| object.
+ void SetupPeerconnectionWithCertificateAndLocalStream(
+ content::WebContents* tab,
+ const std::string& certificate) const;
+ // Same as above but does not add the local stream.
+ void SetupPeerconnectionWithCertificateWithoutLocalStream(
+ content::WebContents* tab,
+ const std::string& certificate) const;
// Exchanges offers and answers between the peer connections in the
// respective tabs. Before calling this, you must have prepared peer
@@ -152,6 +162,13 @@ class WebRtcTestBase : public InProcessBrowserTest {
// Returns true if we're on win 8.
bool OnWin8() const;
+ void OpenDatabase(content::WebContents* tab) const;
+ void CloseDatabase(content::WebContents* tab) const;
+ void DeleteDatabase(content::WebContents* tab) const;
+
+ void GenerateAndCloneCertificate(content::WebContents* tab,
+ const std::string& keygen_algorithm) const;
+
private:
void CloseInfoBarInTab(content::WebContents* tab_contents,
infobars::InfoBar* infobar) const;
« no previous file with comments | « chrome/browser/media/webrtc_browsertest.cc ('k') | chrome/browser/media/webrtc_browsertest_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698