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

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

Issue 1909923002: Making RTCCertificate cloneable (WIP). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Derp! 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_base.h ('k') | chrome/test/data/webrtc/indexeddb.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/webrtc_browsertest_base.cc
diff --git a/chrome/browser/media/webrtc_browsertest_base.cc b/chrome/browser/media/webrtc_browsertest_base.cc
index 06e452afa69c5f357d392a494b0e4b38c026087a..47ff199de65351f793c89be49a6c7bd62bdafb07 100644
--- a/chrome/browser/media/webrtc_browsertest_base.cc
+++ b/chrome/browser/media/webrtc_browsertest_base.cc
@@ -451,3 +451,30 @@ bool WebRtcTestBase::OnWin8() const {
return false;
#endif
}
+
+void WebRtcTestBase::OpenDatabase(content::WebContents* tab) const {
+ std::string response = ExecuteJavascript("openDatabase()", tab);
+ EXPECT_EQ("ok-", response.substr(0, 3)) << "Failed to open database: "
+ << response;
+}
+
+void WebRtcTestBase::CloseDatabase(content::WebContents* tab) const {
+ std::string response = ExecuteJavascript("closeDatabase()", tab);
+ EXPECT_EQ("ok-", response.substr(0, 3)) << "Failed to close database: "
+ << response;
+}
+
+void WebRtcTestBase::DeleteDatabase(content::WebContents* tab) const {
+ std::string response = ExecuteJavascript("deleteDatabase()", tab);
+ EXPECT_EQ("ok-", response.substr(0, 3)) << "Failed to delete database: "
+ << response;
+}
+
+void WebRtcTestBase::GenerateAndCloneCertificate(
+ content::WebContents* tab, const std::string& keygen_algorithm) const {
+ std::string javascript = base::StringPrintf(
+ "generateAndCloneCertificate(%s)", keygen_algorithm.c_str());
+ std::string response = ExecuteJavascript(javascript, tab);
+ EXPECT_EQ("ok-", response.substr(0, 3)) << "Failed to generate and clone "
+ "certificate: " << response;
+}
« no previous file with comments | « chrome/browser/media/webrtc_browsertest_base.h ('k') | chrome/test/data/webrtc/indexeddb.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698