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

Issue 10533006: Support the ModemManager1 interfaces for SMS messages (Closed)

Created:
8 years, 6 months ago by Jason Glasgow
Modified:
8 years, 6 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Base URL:
http://git.chromium.org/git/chromium/src@master
Visibility:
Public.

Description

Support the ModemManager1 interfaces for SMS messages Add dbus support the org.freedesktop.ModemManager1.SMS and org.freedesktop.ModemManager1.Modem.Messaging interfaces. BUG=chromium-os:28421 TEST=chromeos_unittests Change-Id: I4192cb3179a8d377c0b849d3e097a58d3673a379

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fix unittests address all but 1 comment #

Patch Set 3 : Eliminate Proxy class, fix leak. #

Patch Set 4 : Implement full unit testing #

Total comments: 10

Patch Set 5 : Get rid of RequestUpdate function, address nits #

Total comments: 2

Patch Set 6 : Only deliver messages after call to RequestUpdate #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+692 lines, -178 lines) Patch
M chromeos/chromeos.gyp View 1 2 4 chunks +9 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 3 chunks +12 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 1 2 3 4 5 6 chunks +21 lines, -1 line 0 comments Download
M chromeos/dbus/flimflam_device_client.cc View 1 2 3 1 chunk +17 lines, -0 lines 0 comments Download
M chromeos/dbus/flimflam_manager_client.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chromeos/dbus/gsm_sms_client.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chromeos/dbus/gsm_sms_client.cc View 2 chunks +5 lines, -1 line 0 comments Download
M chromeos/dbus/gsm_sms_client_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager.h View 4 chunks +12 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager.cc View 3 chunks +8 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_gsm_sms_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
A + chromeos/dbus/mock_modem_messaging_client.h View 3 chunks +10 lines, -12 lines 1 comment Download
A chromeos/dbus/mock_modem_messaging_client.cc View 1 chunk +13 lines, -0 lines 0 comments Download
A chromeos/dbus/mock_sms_client.h View 1 chunk +29 lines, -0 lines 0 comments Download
A chromeos/dbus/mock_sms_client.cc View 1 chunk +13 lines, -0 lines 0 comments Download
A + chromeos/dbus/modem_messaging_client.h View 4 2 chunks +20 lines, -34 lines 0 comments Download
A chromeos/dbus/modem_messaging_client.cc View 1 2 3 4 5 1 chunk +278 lines, -0 lines 0 comments Download
A + chromeos/dbus/modem_messaging_client_unittest.cc View 1 2 3 4 14 chunks +49 lines, -125 lines 0 comments Download
A chromeos/dbus/sms_client.h View 1 chunk +57 lines, -0 lines 0 comments Download
A chromeos/dbus/sms_client.cc View 1 2 3 4 1 chunk +130 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Jason Glasgow
Split the CL as suggested by hashimoto
8 years, 6 months ago (2012-06-05 16:31:48 UTC) #1
hashimoto
http://codereview.chromium.org/10533006/diff/1/chromeos/dbus/modem_messaging_client.cc File chromeos/dbus/modem_messaging_client.cc (right): http://codereview.chromium.org/10533006/diff/1/chromeos/dbus/modem_messaging_client.cc#newcode184 chromeos/dbus/modem_messaging_client.cc:184: proxy = new ModemMessagingProxy(bus_, service_name, object_path); Please don't leave ...
8 years, 6 months ago (2012-06-06 07:19:44 UTC) #2
Jason Glasgow
http://codereview.chromium.org/10533006/diff/1/chromeos/dbus/modem_messaging_client.cc File chromeos/dbus/modem_messaging_client.cc (right): http://codereview.chromium.org/10533006/diff/1/chromeos/dbus/modem_messaging_client.cc#newcode184 chromeos/dbus/modem_messaging_client.cc:184: proxy = new ModemMessagingProxy(bus_, service_name, object_path); On 2012/06/06 07:19:44, ...
8 years, 6 months ago (2012-06-06 20:54:20 UTC) #3
Jason Glasgow
I've now run the unittests, but there still seems to be memory corruption when I ...
8 years, 6 months ago (2012-06-06 20:56:13 UTC) #4
Jason Glasgow
Ran units tests. And fixed memory problem in sms_watcher.cc (missing resize before copy). This is ...
8 years, 6 months ago (2012-06-08 03:30:41 UTC) #5
Jason Glasgow
I take that back.... Still need to deal with memory leak.
8 years, 6 months ago (2012-06-08 03:49:25 UTC) #6
Jason Glasgow
Please take another look. I've solved the memory leak problem as you suggested.
8 years, 6 months ago (2012-06-08 19:49:13 UTC) #7
Jason Glasgow
Please take another look. I've solved the memory leak problem as you suggested.
8 years, 6 months ago (2012-06-08 19:49:13 UTC) #8
hashimoto
Looks almost good. Please run `git try -b linux_chromeos,linux_chromeos_clang` (or gcl try if you are ...
8 years, 6 months ago (2012-06-11 07:45:46 UTC) #9
Jason Glasgow
http://codereview.chromium.org/10533006/diff/11001/chromeos/dbus/modem_messaging_client.cc File chromeos/dbus/modem_messaging_client.cc (right): http://codereview.chromium.org/10533006/diff/11001/chromeos/dbus/modem_messaging_client.cc#newcode172 chromeos/dbus/modem_messaging_client.cc:172: const dbus::ObjectPath& object_path) OVERRIDE { On 2012/06/11 07:45:46, hashimoto ...
8 years, 6 months ago (2012-06-11 16:44:47 UTC) #10
stevenjb (google-dont-use)
http://codereview.chromium.org/10533006/diff/11001/chromeos/dbus/modem_messaging_client.h File chromeos/dbus/modem_messaging_client.h (right): http://codereview.chromium.org/10533006/diff/11001/chromeos/dbus/modem_messaging_client.h#newcode66 chromeos/dbus/modem_messaging_client.h:66: const dbus::ObjectPath& object_path) = 0; On 2012/06/11 16:44:47, Jason ...
8 years, 6 months ago (2012-06-11 17:15:06 UTC) #11
Jason Glasgow
flimflam/shill really means ModemManager. Answering stevenjb's question... New messages arriving are pushed, i.e. ModemManager sends ...
8 years, 6 months ago (2012-06-11 17:46:19 UTC) #12
stevenjb (google-dont-use)
http://codereview.chromium.org/10533006/diff/5005/chromeos/dbus/modem_messaging_client.cc File chromeos/dbus/modem_messaging_client.cc (right): http://codereview.chromium.org/10533006/diff/5005/chromeos/dbus/modem_messaging_client.cc#newcode247 chromeos/dbus/modem_messaging_client.cc:247: callback.Run(no_paths); Here is how we would like the NetworkSmsHandler ...
8 years, 6 months ago (2012-06-11 18:14:26 UTC) #13
Jason Glasgow
See below. On 2012/06/11 18:14:26, stevenjb1 wrote: > http://codereview.chromium.org/10533006/diff/5005/chromeos/dbus/modem_messaging_client.cc > File chromeos/dbus/modem_messaging_client.cc (right): > > ...
8 years, 6 months ago (2012-06-11 19:22:15 UTC) #14
stevenjb (google-dont-use)
On Mon, Jun 11, 2012 at 12:22 PM, <jglasgow@chromium.org> wrote: > See below. > > ...
8 years, 6 months ago (2012-06-11 19:27:08 UTC) #15
Jason Glasgow
http://codereview.chromium.org/10533006/diff/5005/chromeos/dbus/modem_messaging_client.cc File chromeos/dbus/modem_messaging_client.cc (right): http://codereview.chromium.org/10533006/diff/5005/chromeos/dbus/modem_messaging_client.cc#newcode247 chromeos/dbus/modem_messaging_client.cc:247: callback.Run(no_paths); On 2012/06/11 18:14:26, stevenjb1 wrote: > Here is ...
8 years, 6 months ago (2012-06-11 21:09:48 UTC) #16
stevenjb
lgtm
8 years, 6 months ago (2012-06-11 22:06:40 UTC) #17
hashimoto
lgtm with a nit. Thank for keeping the production code clean. http://codereview.chromium.org/10533006/diff/12023/chromeos/dbus/mock_modem_messaging_client.h File chromeos/dbus/mock_modem_messaging_client.h (right): ...
8 years, 6 months ago (2012-06-12 02:24:04 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jglasgow@chromium.org/10533006/12023
8 years, 6 months ago (2012-06-12 03:37:54 UTC) #19
commit-bot: I haz the power
Try job failure for 10533006-12023 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 6 months ago (2012-06-12 04:06:23 UTC) #20
Ben Chan
On 2012/06/12 04:06:23, I haz the power (commit-bot) wrote: > Try job failure for 10533006-12023 ...
8 years, 6 months ago (2012-06-12 08:19:40 UTC) #21
Ben Chan
8 years, 6 months ago (2012-06-12 09:13:38 UTC) #22
On 2012/06/12 08:19:40, Ben Chan wrote:
> On 2012/06/12 04:06:23, I haz the power (commit-bot) wrote:
> > Try job failure for 10533006-12023 (retry) on linux_chromeos for step
> "compile"
> > (clobber build).
> > It's a second try, previously, step "compile" failed.
> >
>
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_chro...
> 
> Seems like CHROMEOS_EXPORT is missing on SmsClient, which fails the linking of
> unit tests

+jglasglow: your CL is committed

Powered by Google App Engine
This is Rietveld 408576698