forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Geolocation: cleanup wifi_data_provider_common_unittest
Two of the test cases were flakily timing out so this CL rewrites the threading model of the test, removing the |run_loop_| and expecting MockWlanApi::GetAccessPointData() to explicitly finish the tests. Also this CL: - simplifies the logic using GMock mojo - moves a few variables to ctor initializer lists ISO SetUp() - removes RunNormal() test case bc is a dupe of DoAnEmptyScan(). Important: this CL also removes the test case: GeolocationWifiDataProviderCommonTest::RegisterUnregister because it didn't belong to this unit test; incidentally it also verifies little since it just register-unregisters a test factory. Will land some specific tests for this class very soon. BUG=405596 Review-Url: https://codereview.chromium.org/2829983002 Cr-Commit-Position: refs/heads/master@{#466525}
- Loading branch information
Showing
3 changed files
with
82 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters