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

Issue 22185002: Add browser test to the sharing dialog feature in Files.app. (Closed)

Created:
7 years, 4 months ago by mtomasz
Modified:
7 years, 4 months ago
Reviewers:
hidehiko, yoshiki
CC:
chromium-reviews, extensions-reviews_chromium.org, cbentzel+watch_chromium.org, nkostylev+watch_chromium.org, rginda+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Add browser test to the sharing dialog feature in Files.app. This patch adds an end-to-end test for the sharing dialog. It uses a mocked sharing dialog implementation. This browser test validates: - If passing the sharing url from the drive service works correctly. - If clicking on the Share button invokes the sharing dialog. - If the communication over messages with the share dialog works correctly: Handshake, displaying contents, synchronizing dimensions. - If the window is closed when the button in the sharing dialog is pressed. All of these steps are tested for both - a file and a directory. TEST=browser_tests:*ShareDialog/FileManagerBrowserTest.Test/* BUG=268221 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215810

Patch Set 1 #

Patch Set 2 : Cleaned up. #

Total comments: 6

Patch Set 3 : Fixed. #

Patch Set 4 : Addressed comments. #

Patch Set 5 : Fixed jsdoc. #

Total comments: 16

Patch Set 6 : Addressed comments. #

Patch Set 7 : Added the licence header. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -12 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/file_manager_browsertest.cc View 1 2 3 4 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/drive/fake_drive_service.h View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/drive/fake_drive_service.cc View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/resources/file_manager/js/background.js View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/file_manager/js/share_client.js View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/resources/file_manager/js/share_dialog.js View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/resources/file_manager/js/test_util.js View 1 2 3 4 5 4 chunks +23 lines, -3 lines 0 comments Download
A chrome/test/data/chromeos/file_manager/share_dialog_mock/index.html View 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/chromeos/file_manager/share_dialog_mock/main.js View 1 2 3 4 5 6 1 chunk +155 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_manager_browsertest/test_cases.js View 2 chunks +90 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
mtomasz
@yoshiki: PTAL at JS. @hidehiko: PTAL at C++. Thanks!
7 years, 4 months ago (2013-08-05 11:53:05 UTC) #1
hidehiko
https://codereview.chromium.org/22185002/diff/3001/chrome/browser/chromeos/extensions/file_manager/file_manager_browsertest.cc File chrome/browser/chromeos/extensions/file_manager/file_manager_browsertest.cc (right): https://codereview.chromium.org/22185002/diff/3001/chrome/browser/chromeos/extensions/file_manager/file_manager_browsertest.cc#newcode38 chrome/browser/chromeos/extensions/file_manager/file_manager_browsertest.cc:38: #include "net/test/embedded_test_server/http_request.h" Do you need this and below include ...
7 years, 4 months ago (2013-08-05 15:07:44 UTC) #2
mtomasz
Thanks for the comments. https://codereview.chromium.org/22185002/diff/3001/chrome/browser/chromeos/extensions/file_manager/file_manager_browsertest.cc File chrome/browser/chromeos/extensions/file_manager/file_manager_browsertest.cc (right): https://codereview.chromium.org/22185002/diff/3001/chrome/browser/chromeos/extensions/file_manager/file_manager_browsertest.cc#newcode38 chrome/browser/chromeos/extensions/file_manager/file_manager_browsertest.cc:38: #include "net/test/embedded_test_server/http_request.h" On 2013/08/05 15:07:44, ...
7 years, 4 months ago (2013-08-05 15:18:31 UTC) #3
hidehiko
LGTM for c++ side. Please wait for yoshik@'s review, too.
7 years, 4 months ago (2013-08-05 15:29:42 UTC) #4
yoshiki
Nice patch. I'll refer this in writing CWS-integration tests. https://codereview.chromium.org/22185002/diff/37001/chrome/browser/resources/file_manager/js/share_client.js File chrome/browser/resources/file_manager/js/share_client.js (right): https://codereview.chromium.org/22185002/diff/37001/chrome/browser/resources/file_manager/js/share_client.js#newcode80 chrome/browser/resources/file_manager/js/share_client.js:80: ...
7 years, 4 months ago (2013-08-05 16:19:37 UTC) #5
mtomasz
https://codereview.chromium.org/22185002/diff/37001/chrome/browser/resources/file_manager/js/share_client.js File chrome/browser/resources/file_manager/js/share_client.js (right): https://codereview.chromium.org/22185002/diff/37001/chrome/browser/resources/file_manager/js/share_client.js#newcode80 chrome/browser/resources/file_manager/js/share_client.js:80: if (e.origin != ShareClient.SHARE_TARGET && !window.IN_TEST) On 2013/08/05 16:19:38, ...
7 years, 4 months ago (2013-08-05 16:33:36 UTC) #6
mtomasz
On 2013/08/05 16:33:36, mtomasz wrote: > https://codereview.chromium.org/22185002/diff/37001/chrome/browser/resources/file_manager/js/share_client.js > File chrome/browser/resources/file_manager/js/share_client.js (right): > > https://codereview.chromium.org/22185002/diff/37001/chrome/browser/resources/file_manager/js/share_client.js#newcode80 > ...
7 years, 4 months ago (2013-08-05 16:57:26 UTC) #7
mtomasz
On 2013/08/05 16:57:26, mtomasz wrote: > On 2013/08/05 16:33:36, mtomasz wrote: > > > https://codereview.chromium.org/22185002/diff/37001/chrome/browser/resources/file_manager/js/share_client.js ...
7 years, 4 months ago (2013-08-05 17:01:04 UTC) #8
yoshiki
On 2013/08/05 17:01:04, mtomasz wrote: > On 2013/08/05 16:57:26, mtomasz wrote: > > On 2013/08/05 ...
7 years, 4 months ago (2013-08-06 01:16:45 UTC) #9
yoshiki
https://codereview.chromium.org/22185002/diff/37001/chrome/browser/resources/file_manager/js/share_dialog.js File chrome/browser/resources/file_manager/js/share_dialog.js (right): https://codereview.chromium.org/22185002/diff/37001/chrome/browser/resources/file_manager/js/share_dialog.js#newcode223 chrome/browser/resources/file_manager/js/share_dialog.js:223: !window.IN_TEST ? ShareClient.SHARE_TARGET : '<all_urls>', ShareClient.SHARE_TARGET is an origin, ...
7 years, 4 months ago (2013-08-06 01:17:01 UTC) #10
mtomasz
https://codereview.chromium.org/22185002/diff/37001/chrome/browser/resources/file_manager/js/share_dialog.js File chrome/browser/resources/file_manager/js/share_dialog.js (right): https://codereview.chromium.org/22185002/diff/37001/chrome/browser/resources/file_manager/js/share_dialog.js#newcode223 chrome/browser/resources/file_manager/js/share_dialog.js:223: !window.IN_TEST ? ShareClient.SHARE_TARGET : '<all_urls>', On 2013/08/06 01:17:01, yoshiki ...
7 years, 4 months ago (2013-08-06 02:02:35 UTC) #11
yoshiki
lgtm
7 years, 4 months ago (2013-08-06 03:16:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/22185002/50001
7 years, 4 months ago (2013-08-06 03:31:16 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=18944
7 years, 4 months ago (2013-08-06 03:44:28 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/22185002/66001
7 years, 4 months ago (2013-08-06 03:59:58 UTC) #15
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 05:59:24 UTC) #16
Message was sent while issue was closed.
Change committed as 215810

Powered by Google App Engine
This is Rietveld 408576698