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

Issue 10825170: chromeos: Add dbus MTPDClient. (Closed)

Created:
8 years, 4 months ago by Lei Zhang
Modified:
8 years, 4 months ago
Reviewers:
satorux1, hashimoto
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org, Ben Chan
Visibility:
Public.

Description

chromeos: Add dbus MTPDClient. BUG=chromium-os:29557 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=150382

Patch Set 1 : #

Total comments: 3

Patch Set 2 : #

Total comments: 27

Patch Set 3 : address comments #

Patch Set 4 : with mock #

Total comments: 4

Patch Set 5 : rename #

Patch Set 6 : s/MTPD/Mtpd/ to match server side review comments #

Patch Set 7 : use constants #

Patch Set 8 : fix mock code #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+997 lines, -20 lines) Patch
M chromeos/chromeos.gyp View 1 2 3 4 5 6 3 chunks +6 lines, -2 lines 0 comments Download
M chromeos/dbus/cros_disks_client.h View 1 2 3 4 5 6 4 chunks +20 lines, -14 lines 0 comments Download
M chromeos/dbus/cros_disks_client.cc View 1 2 3 4 5 6 4 chunks +5 lines, -3 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 1 2 3 4 5 6 2 chunks +7 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 1 2 3 4 5 6 6 chunks +15 lines, -1 line 0 comments Download
A chromeos/dbus/media_transfer_protocol_daemon_client.h View 1 2 3 4 1 chunk +283 lines, -0 lines 0 comments Download
A chromeos/dbus/media_transfer_protocol_daemon_client.cc View 1 2 3 4 5 6 1 chunk +572 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager.h View 1 2 3 4 5 6 7 4 chunks +9 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager.cc View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager_without_gmock.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager_without_gmock.cc View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -0 lines 0 comments Download
A chromeos/dbus/mock_media_transfer_protocol_daemon_client.h View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
A chromeos/dbus/mock_media_transfer_protocol_daemon_client.cc View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Lei Zhang
This is basically a poor copy of CrOSDiskClient, just like MTPD is a poor copy ...
8 years, 4 months ago (2012-08-03 03:20:43 UTC) #1
hashimoto
Are you willing to make this checked in before M22 branch point as well as ...
8 years, 4 months ago (2012-08-03 04:48:42 UTC) #2
Lei Zhang
On 2012/08/03 04:48:42, hashimoto wrote: > Are you willing to make this checked in before ...
8 years, 4 months ago (2012-08-03 04:52:47 UTC) #3
Lei Zhang
Should I add a mock client and add this to DBusThreadManger in this CL? http://codereview.chromium.org/10825170/diff/4001/chromeos/dbus/mtpd_client.cc ...
8 years, 4 months ago (2012-08-03 04:53:50 UTC) #4
hashimoto
LGTM assuming TODOs are going to be resolved as soon as possible. On 2012/08/03 04:53:50, ...
8 years, 4 months ago (2012-08-03 05:07:12 UTC) #5
satorux1
http://codereview.chromium.org/10825170/diff/9002/chromeos/dbus/mtpd_client.cc File chromeos/dbus/mtpd_client.cc (right): http://codereview.chromium.org/10825170/diff/9002/chromeos/dbus/mtpd_client.cc#newcode68 chromeos/dbus/mtpd_client.cc:68: "org.chromium.MTPD", Constants like this should be defined in service_constants.h. ...
8 years, 4 months ago (2012-08-03 05:26:07 UTC) #6
satorux1
http://codereview.chromium.org/10825170/diff/9002/chromeos/dbus/mtpd_client.h File chromeos/dbus/mtpd_client.h (right): http://codereview.chromium.org/10825170/diff/9002/chromeos/dbus/mtpd_client.h#newcode187 chromeos/dbus/mtpd_client.h:187: typedef base::Callback<void(const std::string&)> ReadFileCallback; btw, this may be bad ...
8 years, 4 months ago (2012-08-03 05:37:10 UTC) #7
satorux1
http://codereview.chromium.org/10825170/diff/9002/chromeos/dbus/mtpd_client.h File chromeos/dbus/mtpd_client.h (right): http://codereview.chromium.org/10825170/diff/9002/chromeos/dbus/mtpd_client.h#newcode187 chromeos/dbus/mtpd_client.h:187: typedef base::Callback<void(const std::string&)> ReadFileCallback; On 2012/08/03 05:37:10, satorux1 wrote: ...
8 years, 4 months ago (2012-08-03 05:41:57 UTC) #8
Lei Zhang
I addressed the stype comments in cros_disks_client.* too. http://codereview.chromium.org/10825170/diff/9002/chromeos/dbus/mtpd_client.cc File chromeos/dbus/mtpd_client.cc (right): http://codereview.chromium.org/10825170/diff/9002/chromeos/dbus/mtpd_client.cc#newcode68 chromeos/dbus/mtpd_client.cc:68: "org.chromium.MTPD", ...
8 years, 4 months ago (2012-08-03 06:29:30 UTC) #9
Lei Zhang
With mock client in patch set 4. Actual user code will be a separate CL ...
8 years, 4 months ago (2012-08-03 07:09:09 UTC) #10
satorux1
http://codereview.chromium.org/10825170/diff/3003/chromeos/dbus/mtpd_client.cc File chromeos/dbus/mtpd_client.cc (right): http://codereview.chromium.org/10825170/diff/3003/chromeos/dbus/mtpd_client.cc#newcode482 chromeos/dbus/mtpd_client.cc:482: MaybePopUint64(properties["FreeSpaceInObjects"], &free_space_in_objects_); Here's an idea. As you've already learned, ...
8 years, 4 months ago (2012-08-03 17:38:42 UTC) #11
Lei Zhang
http://codereview.chromium.org/10825170/diff/3003/chromeos/dbus/mtpd_client.cc File chromeos/dbus/mtpd_client.cc (right): http://codereview.chromium.org/10825170/diff/3003/chromeos/dbus/mtpd_client.cc#newcode482 chromeos/dbus/mtpd_client.cc:482: MaybePopUint64(properties["FreeSpaceInObjects"], &free_space_in_objects_); On 2012/08/03 17:38:42, satorux1 wrote: > Here's ...
8 years, 4 months ago (2012-08-03 18:44:15 UTC) #12
satorux1
LGMT. The new name looks good! Please update the patch description
8 years, 4 months ago (2012-08-03 20:22:42 UTC) #13
satorux1
LGTM...
8 years, 4 months ago (2012-08-03 20:22:52 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/10825170/1007
8 years, 4 months ago (2012-08-06 21:59:15 UTC) #15
commit-bot: I haz the power
8 years, 4 months ago (2012-08-06 21:59:19 UTC) #16
Presubmit check for 10825170-1007 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Warnings **
Found lines longer than 80 characters (first 5 shown).
  chromeos/dbus/mock_media_transfer_protocol_daemon_client.cc, line 9, 92 chars
\
  chromeos/dbus/mock_media_transfer_protocol_daemon_client.cc, line 11, 93 chars

Presubmit checks took 1.3s to calculate.

Powered by Google App Engine
This is Rietveld 408576698