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

Issue 9703115: Add DeviceSettingProvider unit tests. (Closed)

Created:
8 years, 9 months ago by pastarmovj
Modified:
8 years, 9 months ago
CC:
chromium-reviews, MAD, nkostylev+watch_chromium.org, stevenjb+watch_chromium.org, Ilya Sherman, davemoore+watch_chromium.org, jar (doing other things)
Visibility:
Public.

Description

Add DeviceSettingProvider unit tests. BUG=none TEST=unit_tests:DeviceSettingsProviderTest.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=128874

Patch Set 1 #

Patch Set 2 : Fixed documentation. #

Total comments: 38

Patch Set 3 : Addressed comments and removed the MetricsService changes from this CL. #

Total comments: 1

Patch Set 4 : Addressed comment. #

Patch Set 5 : Used the new ScopedMockedUserManagerEnabler. #

Patch Set 6 : Fixed copyright header. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+242 lines, -8 lines) Patch
M chrome/browser/chromeos/cros_settings.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/device_settings_provider.h View 1 2 4 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/chromeos/device_settings_provider.cc View 1 2 4 chunks +6 lines, -4 lines 0 comments Download
A chrome/browser/chromeos/device_settings_provider_unittest.cc View 1 2 3 4 1 chunk +219 lines, -0 lines 0 comments Download
M chrome/browser/ui/options/options_util.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
pastarmovj
Please review this CL which adds unit tests to DeviceSettingsProvider.
8 years, 9 months ago (2012-03-16 13:55:52 UTC) #1
Mattias Nissler (ping if slow)
http://codereview.chromium.org/9703115/diff/2001/chrome/browser/chromeos/device_settings_provider.h File chrome/browser/chromeos/device_settings_provider.h (right): http://codereview.chromium.org/9703115/diff/2001/chrome/browser/chromeos/device_settings_provider.h#newcode47 chrome/browser/chromeos/device_settings_provider.h:47: OwnershipService::Status ownership_service); it seems like the name |ownership_service| is ...
8 years, 9 months ago (2012-03-16 15:21:10 UTC) #2
jar (doing other things)
http://codereview.chromium.org/9703115/diff/2001/chrome/browser/metrics/metrics_service.h File chrome/browser/metrics/metrics_service.h (right): http://codereview.chromium.org/9703115/diff/2001/chrome/browser/metrics/metrics_service.h#newcode144 chrome/browser/metrics/metrics_service.h:144: friend class chromeos::DeviceSettingsProviderTest; I'm always leery about adding friendship ...
8 years, 9 months ago (2012-03-16 16:29:16 UTC) #3
pastarmovj
PTAL at this much better contained version now. I managed to get my tests running ...
8 years, 9 months ago (2012-03-21 15:23:26 UTC) #4
Mattias Nissler (ping if slow)
LGTM with a nit. https://chromiumcodereview.appspot.com/9703115/diff/6001/chrome/browser/chromeos/device_settings_provider_unittest.cc File chrome/browser/chromeos/device_settings_provider_unittest.cc (right): https://chromiumcodereview.appspot.com/9703115/diff/6001/chrome/browser/chromeos/device_settings_provider_unittest.cc#newcode79 chrome/browser/chromeos/device_settings_provider_unittest.cc:79: pointer_factory_.GetWeakPtr()), You could actually ditch ...
8 years, 9 months ago (2012-03-22 10:59:33 UTC) #5
pastarmovj
Adding sky to review the change to chrome/browser/ui/options/options_util.cc. I have a plan to extend the ...
8 years, 9 months ago (2012-03-23 13:39:39 UTC) #6
sky
8 years, 9 months ago (2012-03-23 16:04:33 UTC) #7
LGTM

Powered by Google App Engine
This is Rietveld 408576698