summaryrefslogtreecommitdiffstats
path: root/chrome/browser/geolocation/location_arbitrator_unittest.cc
Commit message (Collapse)AuthorAgeFilesLines
* Add extra logging to help in debugging flaky geolocation browser tests.joth@chromium.org2010-10-141-60/+35
| | | | | | | | | | | Refactor mock location provider to send new position to provider thread, rather than writing it into shared memory that was missing locking. BUG=None TEST=Geoloc* browser and unit tests. Review URL: http://codereview.chromium.org/3749004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62535 0039d316-1c4b-4281-b951-d872f2087c98
* Refactoring geolocation code to work on its own thread.allanwoj@chromium.org2010-10-011-101/+47
| | | | | | | | | | | Split the arbitrator into a class that handles the threading and a class that handles location provider arbitration. Changed unit tests and MockLocationProvider to work with this new model. BUG=None TEST= --gtest_filter=*Geolo* Review URL: http://codereview.chromium.org/3548008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61182 0039d316-1c4b-4281-b951-d872f2087c98
* Location provider using Windows 7 Location APIallanwoj@chromium.org2010-08-171-2/+2
| | | | | | | | | | | Implementation of a location provider that uses the Windows 7 Location API. Currently uses polling to get the users location, I will update this to use signals provided by the API in a future patch. BUG=45535 TEST=Two test files included. Review URL: http://codereview.chromium.org/3015053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56332 0039d316-1c4b-4281-b951-d872f2087c98
* convert providers to be long-lived - give them a stop methodjoth@chromium.org2010-06-111-10/+14
| | | | | | | | port arbitrator over to use Start & Stop instead of creating and destroying providers Review URL: http://codereview.chromium.org/2720004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49534 0039d316-1c4b-4281-b951-d872f2087c98
* Track options per bridge rather than per dispatcher hostjoth@chromium.org2010-06-081-0/+8
| | | | | | | | | | | Also fixes a bug in arbitrator that updating options might not stop high accuracy providers BUG=40103 TEST=unit_tests --gtest_filter=*Geol* Review URL: http://codereview.chromium.org/2676006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49155 0039d316-1c4b-4281-b951-d872f2087c98
* Implement location arbitration (kudos to previous internal projects this is ↵joth@chromium.org2010-06-011-27/+198
| | | | | | | | | | | lifted from) BUG=38509 TEST=GeolocationLocationArbitratorTest.Arbitration Review URL: http://codereview.chromium.org/2376001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48631 0039d316-1c4b-4281-b951-d872f2087c98
* Defer sending wifi data via the network provider until permission has been ↵joth@chromium.org2010-04-011-0/+20
| | | | | | | | | | | | | | granted to use geolocaiton. Also fixes a long standing todos/bugs that the host sent in the network request was not set correctly, and location results were not always tagged against the correct source data in the cache. BUG=39171 TEST=run with --geolocation-enabled and --log-level=0, check from logs that no location request sent until authorized. Review URL: http://codereview.chromium.org/1541008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43339 0039d316-1c4b-4281-b951-d872f2087c98
* Switch from using custom time / epoch handling code (inherited from gears) ↵joth@chromium.org2010-03-161-1/+1
| | | | | | | | | | | to base::Time BUG=http://code.google.com/p/chromium/issues/detail?id=37510 TEST=unit_tests --gtest_filter=geol* Review URL: http://codereview.chromium.org/776001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41722 0039d316-1c4b-4281-b951-d872f2087c98
* Fix crash when permission request received from extension.joth@chromium.org2010-03-041-1/+2
| | | | | | | | | BUG=http://crbug.com/37196 TEST=TODO Review URL: http://codereview.chromium.org/667006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40621 0039d316-1c4b-4281-b951-d872f2087c98
* Bring Geolocation to life!joth@chromium.org2010-02-261-5/+5
| | | | | | | | | | | | | Bolt the geolocation dispatcher host up to the location arbitrator Introduces a new method for fetching a singleton default location arbitrator with minimal fuss. Fix bug in the geolocation dispatcher where bridge id & route id were swapped on send. BUG=http://crbug.com/11246 TEST=run browser with --enable-geolocaiton & Open http://maps.google.co.uk/maps/m Review URL: http://codereview.chromium.org/658005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40118 0039d316-1c4b-4281-b951-d872f2087c98
* Fix bug found in the location arbitrator whilst doing trial integration: ↵joth@chromium.org2010-02-241-7/+28
| | | | | | | | | | | need to make callback when new observer registers. + add a test for it. BUG=none TEST=GeolocationLocationArbitratorTest.RegistrationAfterFixArrives Review URL: http://codereview.chromium.org/652136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39884 0039d316-1c4b-4281-b951-d872f2087c98
* Fix threading problems in the access token store impl, and majorly simplify ↵joth@chromium.org2010-02-191-11/+11
| | | | | | | | | | | the API in process BUG=http://code.google.com/p/chromium/issues/detail?id=36068 TEST=GeolocationAccessTokenStoreTest.SetAcrossInstances Review URL: http://codereview.chromium.org/646044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39451 0039d316-1c4b-4281-b951-d872f2087c98
* Move MockLocationProvider to location_provider.cc to fix Linux shared build.craig.schlenter@chromium.org2010-02-191-37/+0
| | | | | | | | | | | | | | | Error was: out/Release/lib.target/chrome/libbrowser.so: undefined reference to `NewMockLocationProvider()' MockLocationProvider is used by location_arbitrator.cc resulting in the above error. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/644002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39445 0039d316-1c4b-4281-b951-d872f2087c98
* Second try for:bulach@chromium.org2010-02-191-7/+7
| | | | | | | | | | | | | | | http://src.chromium.org/viewvc/chrome?view=rev&revision=39374 Initial Geolocation implementation Adds IPC plumbing. Adds Infobar buttons for requesting permission This change specifically: ui_test_utils::WaitForAppModalDialog registers for listening to notifications too late, i.e., after the dialog had been triggered. Exposes AppModalDialogObserver so that we can register, trigger the dialog, then wait for it. Review URL: http://codereview.chromium.org/647048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39435 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 39366 - Initial Geolocation implementationbulach@chromium.org2010-02-181-7/+7
| | | | | | | | | | | | | | Adds IPC plumbing. Adds Infobar buttons for requesting permission TEST=geolocation_browsertest.cc Review URL: http://codereview.chromium.org/548188 TBR=bulach@chromium.org Review URL: http://codereview.chromium.org/646027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39374 0039d316-1c4b-4281-b951-d872f2087c98
* Initial Geolocation implementationbulach@chromium.org2010-02-181-7/+7
| | | | | | | | | | | Adds IPC plumbing. Adds Infobar buttons for requesting permission TEST=geolocation_browsertest.cc Review URL: http://codereview.chromium.org/548188 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39366 0039d316-1c4b-4281-b951-d872f2087c98
* Add unit tests for locaiton arbitrator and browser tests for the access ↵joth@chromium.org2010-02-171-0/+171
token store (as it integrates with browser singletons) Fixes a few bugs discovered along the way, and make large-ish redesign of the access token API in order to allow sane use with threading restrictions. BUG=None TEST=unit_tests.exe --gtest_filter=Geol* --gtest_repeat=10000 --gtest_break_on_failure Review URL: http://codereview.chromium.org/600141 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39232 0039d316-1c4b-4281-b951-d872f2087c98