Chromium Code Reviews
Description[NTP Snippets] Add unit tests for NTPSnippetsFetcher
The class had almost no coverage given that, besides not having unit tests, the ones for NTPSnippetsService don't actually exercise the fetcher.
The proposed tests make use of FakeURLFetcherFactory to exercise basic success and failure cases and verify how callbacks are triggered. FakeURLFetcherFactory doesn't however support verifying features like the uploaded POST data for selected hosts which is left outside the scope of this patch.
BUG=584428
Committed: https://crrev.com/302f9f70265f86097aa3bc4c7695fe99d067b47c
Cr-Commit-Position: refs/heads/master@{#390950}
Patch Set 1 #Patch Set 2 : Nits #
Total comments: 10
Patch Set 3 : Addressed minor comments. #Patch Set 4 : Added Times(1) for clarity as suggested #Patch Set 5 : Fixed build for linux_chromium_chromeos_compile_dbg_ng #
Dependent Patchsets: Messages
Total messages: 24 (11 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||