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

Issue 1962673002: WebRtcBrowserTest prep-CL for IndexedDB cloning of RTCCertificate. (Closed)

Created:
4 years, 7 months ago by hbos_chromium
Modified:
4 years, 7 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, tnakamura+watch_chromium.org, phoglund+watch_chromium.org, mcasas+watch+vc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

WebRtcBrowserTest prep-CL for IndexedDB cloning of RTCCertificate. This is part of larger work that will allow persistent storage of RTCCertificate in IndexedDB. The big picture can be seen here: https://codereview.chromium.org/1949033002/ This CL implements part 3a+3b: 3. Unittests making sure RTCCertificate can be saved and loaded from IndexedDB a) chrome/test/data/webrtc/indexeddb.js added with functions for managing a database and saving and loading (cloning) certificates. b) WebRtcTestBase implementing C++ functions for calling the indexeddb.js API. Part 3c is *NOT* implemented: c) WebRtcBrowserTest tests added which clone certificates and sets up calls using the clones. This is because RTCCertificate cloning (pt.2) has not landed yet, so any attempt to clone it in a unittest would fail. Part 2 + 3c will be done in a follow-up. BUG=581354 Committed: https://crrev.com/042933a05d5d0bde0aaea8882c7d74b79810c799 Cr-Commit-Position: refs/heads/master@{#392582}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Addressed comments (promises, internals, ok-derp str equality) #

Total comments: 4

Patch Set 3 : (Rebase with master) #

Patch Set 4 : Addressed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+273 lines, -48 lines) Patch
M chrome/browser/media/webrtc_browsertest.cc View 2 chunks +28 lines, -28 lines 0 comments Download
M chrome/browser/media/webrtc_browsertest_base.h View 2 chunks +20 lines, -3 lines 0 comments Download
M chrome/browser/media/webrtc_browsertest_base.cc View 1 2 chunks +45 lines, -4 lines 0 comments Download
A chrome/test/data/webrtc/indexeddb.js View 1 2 3 1 chunk +155 lines, -0 lines 0 comments Download
M chrome/test/data/webrtc/peerconnection.js View 2 chunks +22 lines, -13 lines 0 comments Download
M chrome/test/data/webrtc/webrtc_audio_quality_test.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webrtc/webrtc_jsep01_test.html View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/webrtc/webrtc_video_quality_test.html View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17 (6 generated)
hbos_chromium
Please take a look, jsbell: chrome/test/data/webrtc/indexeddb.js for your IndexedDB expertise (found your name in a ...
4 years, 7 months ago (2016-05-09 14:42:39 UTC) #3
phoglund_chromium
https://codereview.chromium.org/1962673002/diff/1/chrome/browser/media/webrtc_browsertest_base.cc File chrome/browser/media/webrtc_browsertest_base.cc (right): https://codereview.chromium.org/1962673002/diff/1/chrome/browser/media/webrtc_browsertest_base.cc#newcode471 chrome/browser/media/webrtc_browsertest_base.cc:471: EXPECT_EQ("ok-", response.substr(0, 3)) << "Failed to open database: " ...
4 years, 7 months ago (2016-05-09 14:59:57 UTC) #4
jsbell
a few nits, but overall indexedb usage code lgtm https://codereview.chromium.org/1962673002/diff/1/chrome/test/data/webrtc/indexeddb.js File chrome/test/data/webrtc/indexeddb.js (right): https://codereview.chromium.org/1962673002/diff/1/chrome/test/data/webrtc/indexeddb.js#newcode35 chrome/test/data/webrtc/indexeddb.js:35: ...
4 years, 7 months ago (2016-05-09 16:42:39 UTC) #5
hbos_chromium
Thanks for the quick feedback, PTAL phoglund. https://codereview.chromium.org/1962673002/diff/1/chrome/browser/media/webrtc_browsertest_base.cc File chrome/browser/media/webrtc_browsertest_base.cc (right): https://codereview.chromium.org/1962673002/diff/1/chrome/browser/media/webrtc_browsertest_base.cc#newcode471 chrome/browser/media/webrtc_browsertest_base.cc:471: EXPECT_EQ("ok-", response.substr(0, ...
4 years, 7 months ago (2016-05-09 18:23:32 UTC) #6
jsbell
still lgtm, but a suggestion... https://codereview.chromium.org/1962673002/diff/20001/chrome/test/data/webrtc/indexeddb.js File chrome/test/data/webrtc/indexeddb.js (right): https://codereview.chromium.org/1962673002/diff/20001/chrome/test/data/webrtc/indexeddb.js#newcode146 chrome/test/data/webrtc/indexeddb.js:146: function cloneCertificate_(certificate) { Since ...
4 years, 7 months ago (2016-05-09 18:35:33 UTC) #7
hbos_chromium
PTAL phoglund https://codereview.chromium.org/1962673002/diff/20001/chrome/test/data/webrtc/indexeddb.js File chrome/test/data/webrtc/indexeddb.js (right): https://codereview.chromium.org/1962673002/diff/20001/chrome/test/data/webrtc/indexeddb.js#newcode146 chrome/test/data/webrtc/indexeddb.js:146: function cloneCertificate_(certificate) { On 2016/05/09 18:35:33, jsbell ...
4 years, 7 months ago (2016-05-10 06:37:59 UTC) #8
phoglund_chromium
lgtm https://codereview.chromium.org/1962673002/diff/20001/chrome/test/data/webrtc/indexeddb.js File chrome/test/data/webrtc/indexeddb.js (right): https://codereview.chromium.org/1962673002/diff/20001/chrome/test/data/webrtc/indexeddb.js#newcode102 chrome/test/data/webrtc/indexeddb.js:102: if (gDatabase === null) Nit: indent 2?
4 years, 7 months ago (2016-05-10 08:10:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1962673002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1962673002/60001
4 years, 7 months ago (2016-05-10 11:30:01 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 7 months ago (2016-05-10 12:14:47 UTC) #14
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/042933a05d5d0bde0aaea8882c7d74b79810c799 Cr-Commit-Position: refs/heads/master@{#392582}
4 years, 7 months ago (2016-05-10 12:16:21 UTC) #16
hbos_chromium
4 years, 7 months ago (2016-05-10 12:17:27 UTC) #17
Message was sent while issue was closed.
https://codereview.chromium.org/1962673002/diff/20001/chrome/test/data/webrtc...
File chrome/test/data/webrtc/indexeddb.js (right):

https://codereview.chromium.org/1962673002/diff/20001/chrome/test/data/webrtc...
chrome/test/data/webrtc/indexeddb.js:102: if (gDatabase === null)
On 2016/05/10 08:10:16, phoglund_chrome wrote:
> Nit: indent 2?

Done.

Powered by Google App Engine
This is Rietveld 408576698