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

Side by Side Diff: components/ntp_snippets/remote/remote_suggestions_provider_impl_unittest.cc

Issue 2884763002: Automated IWYU fix for TaskRunner includes. (Closed)
Patch Set: rebase on r472096 Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h" 5 #include "components/ntp_snippets/remote/remote_suggestions_provider_impl.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/files/scoped_temp_dir.h" 13 #include "base/files/scoped_temp_dir.h"
14 #include "base/json/json_reader.h" 14 #include "base/json/json_reader.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/memory/ptr_util.h" 16 #include "base/memory/ptr_util.h"
17 #include "base/message_loop/message_loop.h" 17 #include "base/message_loop/message_loop.h"
18 #include "base/run_loop.h" 18 #include "base/run_loop.h"
19 #include "base/single_thread_task_runner.h"
19 #include "base/strings/string_number_conversions.h" 20 #include "base/strings/string_number_conversions.h"
20 #include "base/strings/string_util.h" 21 #include "base/strings/string_util.h"
21 #include "base/strings/stringprintf.h" 22 #include "base/strings/stringprintf.h"
22 #include "base/test/histogram_tester.h" 23 #include "base/test/histogram_tester.h"
23 #include "base/test/simple_test_clock.h" 24 #include "base/test/simple_test_clock.h"
24 #include "base/threading/thread_task_runner_handle.h" 25 #include "base/threading/thread_task_runner_handle.h"
25 #include "base/time/default_clock.h" 26 #include "base/time/default_clock.h"
26 #include "base/time/time.h" 27 #include "base/time/time.h"
27 #include "components/image_fetcher/core/image_decoder.h" 28 #include "components/image_fetcher/core/image_decoder.h"
28 #include "components/image_fetcher/core/image_fetcher.h" 29 #include "components/image_fetcher/core/image_fetcher.h"
(...skipping 1876 matching lines...) Expand 10 before | Expand all | Expand 10 after
1905 WaitForSuggestionsProviderInitialization(service.get(), 1906 WaitForSuggestionsProviderInitialization(service.get(),
1906 /*set_empty_response=*/true); 1907 /*set_empty_response=*/true);
1907 1908
1908 // The scheduler should be notified of clearing the history. 1909 // The scheduler should be notified of clearing the history.
1909 EXPECT_CALL(*scheduler(), OnSuggestionsCleared()); 1910 EXPECT_CALL(*scheduler(), OnSuggestionsCleared());
1910 service->OnStatusChanged(RemoteSuggestionsStatus::ENABLED_AND_SIGNED_OUT, 1911 service->OnStatusChanged(RemoteSuggestionsStatus::ENABLED_AND_SIGNED_OUT,
1911 RemoteSuggestionsStatus::ENABLED_AND_SIGNED_IN); 1912 RemoteSuggestionsStatus::ENABLED_AND_SIGNED_IN);
1912 } 1913 }
1913 1914
1914 } // namespace ntp_snippets 1915 } // namespace ntp_snippets
OLDNEW
« no previous file with comments | « components/metrics/net/network_metrics_provider.h ('k') | components/offline_pages/core/background/request_queue_store_sql.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698