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

Issue 391003006: Make FileTaskExecutor testable. (Closed)

Created:
6 years, 5 months ago by kinaba
Modified:
6 years, 5 months ago
Reviewers:
hirono
CC:
chromium-reviews, tfarina, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Make FileTaskExecutor testable. The existing implementation directly tries to open browser windows and relies on profiles to obtain Drive related services. The CL inserts an indirection to those places and make it easy to test, i.e., to verify the correctness of opened URLs and to insert test fake Drive instances. BUG=161209 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283506

Patch Set 1 #

Total comments: 9

Patch Set 2 : Addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -25 lines) Patch
M chrome/browser/chromeos/drive/file_task_executor.h View 3 chunks +21 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/drive/file_task_executor.cc View 1 5 chunks +49 lines, -21 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
kinaba
ptal. The actual test cases are coming as a separate CL.
6 years, 5 months ago (2014-07-15 08:56:49 UTC) #1
hirono
Sorry for late. https://codereview.chromium.org/391003006/diff/1/chrome/browser/chromeos/drive/file_task_executor.cc File chrome/browser/chromeos/drive/file_task_executor.cc (left): https://codereview.chromium.org/391003006/diff/1/chrome/browser/chromeos/drive/file_task_executor.cc#oldcode103 chrome/browser/chromeos/drive/file_task_executor.cc:103: if (!service || !service->IsMounted() || Can ...
6 years, 5 months ago (2014-07-16 03:33:52 UTC) #2
kinaba
https://codereview.chromium.org/391003006/diff/1/chrome/browser/chromeos/drive/file_task_executor.cc File chrome/browser/chromeos/drive/file_task_executor.cc (left): https://codereview.chromium.org/391003006/diff/1/chrome/browser/chromeos/drive/file_task_executor.cc#oldcode103 chrome/browser/chromeos/drive/file_task_executor.cc:103: if (!service || !service->IsMounted() || On 2014/07/16 03:33:51, hirono ...
6 years, 5 months ago (2014-07-16 04:11:03 UTC) #3
hirono
lgtm! https://codereview.chromium.org/391003006/diff/1/chrome/browser/chromeos/drive/file_task_executor.cc File chrome/browser/chromeos/drive/file_task_executor.cc (left): https://codereview.chromium.org/391003006/diff/1/chrome/browser/chromeos/drive/file_task_executor.cc#oldcode103 chrome/browser/chromeos/drive/file_task_executor.cc:103: if (!service || !service->IsMounted() || On 2014/07/16 04:11:03, ...
6 years, 5 months ago (2014-07-16 04:12:46 UTC) #4
kinaba
The CQ bit was checked by kinaba@chromium.org
6 years, 5 months ago (2014-07-16 04:14:25 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/391003006/20001
6 years, 5 months ago (2014-07-16 04:22:21 UTC) #6
commit-bot: I haz the power
6 years, 5 months ago (2014-07-16 21:14:37 UTC) #7
Message was sent while issue was closed.
Change committed as 283506

Powered by Google App Engine
This is Rietveld 408576698