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

Issue 11412194: Cleanup: MockGeolocationArbitrator for GeolocationProvider tests (Closed)

Created:
8 years ago by John Knottenbelt
Modified:
8 years ago
Reviewers:
bulach, brettw
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Cleanup: use MockGeolocationArbitrator to test GeolocationProvider This patch introduces a MockGeolocationArbitrator class for use with the GeolocationProvider unittests. This avoids having to instantiate dependencies of the GeolocationArbitrator to test the GeolocationProvider. This will make it easier to add a unit test for https://codereview.chromium.org/11312210/ TEST=Existing BUG= Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170444

Patch Set 1 #

Patch Set 2 : Fix Clang error. #

Total comments: 12

Patch Set 3 : Make suggested changes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+195 lines, -725 lines) Patch
M content/browser/geolocation/geolocation_provider.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/geolocation/geolocation_provider_unittest.cc View 1 2 3 chunks +60 lines, -114 lines 0 comments Download
M content/browser/geolocation/location_arbitrator.h View 1 1 chunk +10 lines, -76 lines 0 comments Download
D content/browser/geolocation/location_arbitrator.cc View 1 chunk +0 lines, -185 lines 0 comments Download
A + content/browser/geolocation/location_arbitrator_impl.h View 3 chunks +17 lines, -23 lines 0 comments Download
A + content/browser/geolocation/location_arbitrator_impl.cc View 8 chunks +20 lines, -20 lines 0 comments Download
A + content/browser/geolocation/location_arbitrator_impl_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
D content/browser/geolocation/location_arbitrator_unittest.cc View 1 chunk +0 lines, -294 lines 0 comments Download
A content/browser/geolocation/mock_location_arbitrator.h View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A content/browser/geolocation/mock_location_arbitrator.cc View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
M content/browser/geolocation/network_location_provider_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/geolocation/network_location_request.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
John Knottenbelt
8 years ago (2012-11-27 15:48:22 UTC) #1
bulach
lgtm, thanks! you'll need OWNERS for the gyp.. one question for the test below (although ...
8 years ago (2012-11-28 19:35:59 UTC) #2
John Knottenbelt
Thanks for review, Marcus! Brett, please could you review the changes to the gypi files. ...
8 years ago (2012-11-29 17:31:01 UTC) #3
brettw
.gypi lgtm
8 years ago (2012-11-29 23:55:30 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jknotten@chromium.org/11412194/8003
8 years ago (2012-11-30 10:24:33 UTC) #5
commit-bot: I haz the power
8 years ago (2012-11-30 13:00:41 UTC) #6
Message was sent while issue was closed.
Change committed as 170444

Powered by Google App Engine
This is Rietveld 408576698