Index: components/ntp_snippets/remote/remote_suggestions_provider_impl_unittest.cc |
diff --git a/components/ntp_snippets/remote/remote_suggestions_provider_impl_unittest.cc b/components/ntp_snippets/remote/remote_suggestions_provider_impl_unittest.cc |
index 9df3a6009579ddd3daf901e8ce87fbdc829beff9..bb5afeda0f96d409b09a50dacdd501acb08c0fdf 100644 |
--- a/components/ntp_snippets/remote/remote_suggestions_provider_impl_unittest.cc |
+++ b/components/ntp_snippets/remote/remote_suggestions_provider_impl_unittest.cc |
@@ -898,11 +898,12 @@ TEST_F(RemoteSuggestionsProviderImplTest, LoadsAdditionalSuggestions) { |
EXPECT_THAT(service->GetSuggestionsForTesting(articles_category()), |
ElementsAre(IdEq("http://first"))); |
- auto expect_only_second_suggestion_received = base::Bind([]( |
- Status status, std::vector<ContentSuggestion> suggestions) { |
- EXPECT_THAT(suggestions, SizeIs(1)); |
- EXPECT_THAT(suggestions[0].id().id_within_category(), Eq("http://second")); |
- }); |
+ auto expect_only_second_suggestion_received = |
+ base::Bind([](Status status, std::vector<ContentSuggestion> suggestions) { |
+ EXPECT_THAT(suggestions, SizeIs(1)); |
+ EXPECT_THAT(suggestions[0].id().id_within_category(), |
+ Eq("http://second")); |
+ }); |
LoadMoreFromJSONString(service.get(), articles_category(), |
GetTestJson({GetSuggestionWithUrl("http://second")}), |
/*known_ids=*/std::set<std::string>(), |
@@ -975,9 +976,10 @@ TEST_F(RemoteSuggestionsProviderImplTest, |
service.get(), articles_category(), |
GetTestJson({GetSuggestionWithUrl("http://more-id-1"), |
GetSuggestionWithUrl("http://more-id-2")}), |
- /*known_ids=*/{"http://id-1", "http://id-2", "http://id-3", "http://id-4", |
- "http://id-5", "http://id-6", "http://id-7", "http://id-8", |
- "http://id-9", "http://id-10"}, |
+ /*known_ids=*/ |
+ {"http://id-1", "http://id-2", "http://id-3", "http://id-4", |
+ "http://id-5", "http://id-6", "http://id-7", "http://id-8", |
+ "http://id-9", "http://id-10"}, |
expect_receiving_two_new_suggestions); |
// Verify that the observer received the update as well. We should see the |
@@ -1087,9 +1089,10 @@ TEST_F(RemoteSuggestionsProviderImplTest, |
GetSuggestionWithUrl("http://more-id-8"), |
GetSuggestionWithUrl("http://more-id-9"), |
GetSuggestionWithUrl("http://more-id-10")}), |
- /*known_ids=*/{"http://id-1", "http://id-2", "http://id-3", "http://id-4", |
- "http://id-5", "http://id-6", "http://id-7", "http://id-8", |
- "http://id-9", "http://id-10"}, |
+ /*known_ids=*/ |
+ {"http://id-1", "http://id-2", "http://id-3", "http://id-4", |
+ "http://id-5", "http://id-6", "http://id-7", "http://id-8", |
+ "http://id-9", "http://id-10"}, |
expect_receiving_ten_new_suggestions); |
EXPECT_THAT(observer().SuggestionsForCategory(articles_category()), |
ElementsAre(IdWithinCategoryEq("http://more-id-1"), |