Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(733)

Issue 9950001: Add chromeos::FlimflamManagerClient (Closed)

Created:
8 years, 8 months ago by hashimoto
Modified:
8 years, 8 months ago
Reviewers:
stevenjb
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Add chromeos::FlimflamManagerClient Add chromeos::FlimflamManagerClient Add FlimflamManagerClientTest Add FlimflamClientHelper::AppendDataAsVariant BUG=chromium-os:16557 TEST=unit_tests --gtest_filter="FlimflamManagerClientTest.*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=131731

Patch Set 1 : _ #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Patch Set 4 : Rebase #

Total comments: 13

Patch Set 5 : Add GUID properties to test data, add argument check #

Total comments: 2

Patch Set 6 : Review fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+784 lines, -4 lines) Patch
M chromeos/chromeos.gyp View 1 2 3 3 chunks +5 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 1 2 4 chunks +11 lines, -0 lines 0 comments Download
M chromeos/dbus/flimflam_client_helper.h View 1 2 5 chunks +24 lines, -4 lines 0 comments Download
M chromeos/dbus/flimflam_client_helper.cc View 1 2 3 3 chunks +67 lines, -0 lines 0 comments Download
M chromeos/dbus/flimflam_client_unittest_base.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M chromeos/dbus/flimflam_client_unittest_base.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
A chromeos/dbus/flimflam_manager_client.h View 1 2 1 chunk +93 lines, -0 lines 0 comments Download
A chromeos/dbus/flimflam_manager_client.cc View 1 2 3 4 5 1 chunk +240 lines, -0 lines 0 comments Download
A chromeos/dbus/flimflam_manager_client_unittest.cc View 1 2 3 4 1 chunk +261 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager.h View 1 2 4 chunks +6 lines, -0 lines 0 comments Download
M chromeos/dbus/mock_dbus_thread_manager.cc View 1 2 3 chunks +4 lines, -0 lines 0 comments Download
A chromeos/dbus/mock_flimflam_manager_client.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A chromeos/dbus/mock_flimflam_manager_client.cc View 1 2 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
hashimoto
8 years, 8 months ago (2012-04-04 18:40:11 UTC) #1
hashimoto
Rebased onto ToT PTAL
8 years, 8 months ago (2012-04-09 02:26:06 UTC) #2
stevenjb
Yay for tests. http://codereview.chromium.org/9950001/diff/23001/chromeos/dbus/flimflam_manager_client.cc File chromeos/dbus/flimflam_manager_client.cc (right): http://codereview.chromium.org/9950001/diff/23001/chromeos/dbus/flimflam_manager_client.cc#newcode23 chromeos/dbus/flimflam_manager_client.cc:23: const base::DictionaryValue& dictionary) { This looks ...
8 years, 8 months ago (2012-04-09 19:00:55 UTC) #3
hashimoto
http://codereview.chromium.org/9950001/diff/23001/chromeos/dbus/flimflam_manager_client.cc File chromeos/dbus/flimflam_manager_client.cc (right): http://codereview.chromium.org/9950001/diff/23001/chromeos/dbus/flimflam_manager_client.cc#newcode23 chromeos/dbus/flimflam_manager_client.cc:23: const base::DictionaryValue& dictionary) { On 2012/04/09 19:00:57, stevenjb (chromium) ...
8 years, 8 months ago (2012-04-10 04:37:22 UTC) #4
stevenjb
lgtm with nits http://codereview.chromium.org/9950001/diff/23001/chromeos/dbus/flimflam_manager_client.cc File chromeos/dbus/flimflam_manager_client.cc (right): http://codereview.chromium.org/9950001/diff/23001/chromeos/dbus/flimflam_manager_client.cc#newcode23 chromeos/dbus/flimflam_manager_client.cc:23: const base::DictionaryValue& dictionary) { On 2012/04/10 ...
8 years, 8 months ago (2012-04-10 22:08:37 UTC) #5
hashimoto
8 years, 8 months ago (2012-04-11 03:34:33 UTC) #6
http://codereview.chromium.org/9950001/diff/23001/chromeos/dbus/flimflam_mana...
File chromeos/dbus/flimflam_manager_client.cc (right):

http://codereview.chromium.org/9950001/diff/23001/chromeos/dbus/flimflam_mana...
chromeos/dbus/flimflam_manager_client.cc:23: const base::DictionaryValue&
dictionary) {
On 2012/04/10 22:08:38, stevenjb (chromium) wrote:
> On 2012/04/10 04:37:22, hashimoto wrote:
> > On 2012/04/09 19:00:57, stevenjb (chromium) wrote:
> > > This looks like something that should be in the helper class?
> > 
> > Let me describe the reason why I put this function here.
> > 
> > Flimflam uses two types of dictionaries, string-to-string and
> string-to-variant.
> > A string-to-string dictionary is used as one property which is passed as a
> > variant argument to methods like SetProperty.
> > A string-to-variant dictionary is used to store all properties (basic type
> > values and string-to-string dictionary).  It is passed as a dictionary
> argument
> > to methods like ConfigureService.
> > 
> > Manager is the only interface which needs to append a string-to-variant
> > dictionary to a method call because Manager and Agent are the only
interfaces
> > which takes a dictionary as a method's argument, and chromeos_network.cc has
> > nothing to do with Agent interface.  (You can see it by grepping in
> flimflam/doc
> > directory. http://goo.gl/P1O3s)
> > I put this function here, not in FlimflamClientHelper, because only Manager
> > needs to append a string-to-variant dictionary to a method call.
> > Does it make sense?
> 
> That's fine, I don't have any problem with this being here, it just feels like
a
> generic "AppendDictionaryValue" function should in the Helper class, even if
> this is the only code that uses it. If we keep it here, maybe rename it
> AppendServiceDictionaryValue?

Renamed to AppendServicePropertiesDictionary

http://codereview.chromium.org/9950001/diff/11017/chromeos/dbus/flimflam_mana...
File chromeos/dbus/flimflam_manager_client.cc (right):

http://codereview.chromium.org/9950001/diff/11017/chromeos/dbus/flimflam_mana...
chromeos/dbus/flimflam_manager_client.cc:22: bool IsPropertyValid(const
base::DictionaryValue& properties) {
On 2012/04/10 22:08:38, stevenjb (chromium) wrote:
> nit: Name this something more specific like IsServiceDictionaryValid or
> AreServicePropertiesValid.

Done.

Powered by Google App Engine
This is Rietveld 408576698