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

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

Issue 2761303002: Move common ImageFetcher component files to core/ (Closed)
Patch Set: Rebased. Created 3 years, 9 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/strings/string_number_conversions.h" 19 #include "base/strings/string_number_conversions.h"
20 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
21 #include "base/strings/stringprintf.h" 21 #include "base/strings/stringprintf.h"
22 #include "base/test/histogram_tester.h" 22 #include "base/test/histogram_tester.h"
23 #include "base/test/simple_test_clock.h" 23 #include "base/test/simple_test_clock.h"
24 #include "base/threading/thread_task_runner_handle.h" 24 #include "base/threading/thread_task_runner_handle.h"
25 #include "base/time/default_clock.h" 25 #include "base/time/default_clock.h"
26 #include "base/time/time.h" 26 #include "base/time/time.h"
27 #include "components/image_fetcher/image_decoder.h" 27 #include "components/image_fetcher/core/image_decoder.h"
28 #include "components/image_fetcher/image_fetcher.h" 28 #include "components/image_fetcher/core/image_fetcher.h"
29 #include "components/image_fetcher/image_fetcher_delegate.h" 29 #include "components/image_fetcher/core/image_fetcher_delegate.h"
30 #include "components/image_fetcher/request_metadata.h" 30 #include "components/image_fetcher/core/request_metadata.h"
31 #include "components/ntp_snippets/category.h" 31 #include "components/ntp_snippets/category.h"
32 #include "components/ntp_snippets/category_info.h" 32 #include "components/ntp_snippets/category_info.h"
33 #include "components/ntp_snippets/category_rankers/category_ranker.h" 33 #include "components/ntp_snippets/category_rankers/category_ranker.h"
34 #include "components/ntp_snippets/category_rankers/constant_category_ranker.h" 34 #include "components/ntp_snippets/category_rankers/constant_category_ranker.h"
35 #include "components/ntp_snippets/category_rankers/mock_category_ranker.h" 35 #include "components/ntp_snippets/category_rankers/mock_category_ranker.h"
36 #include "components/ntp_snippets/fake_content_suggestions_provider_observer.h" 36 #include "components/ntp_snippets/fake_content_suggestions_provider_observer.h"
37 #include "components/ntp_snippets/features.h" 37 #include "components/ntp_snippets/features.h"
38 #include "components/ntp_snippets/ntp_snippets_constants.h" 38 #include "components/ntp_snippets/ntp_snippets_constants.h"
39 #include "components/ntp_snippets/pref_names.h" 39 #include "components/ntp_snippets/pref_names.h"
40 #include "components/ntp_snippets/remote/persistent_scheduler.h" 40 #include "components/ntp_snippets/remote/persistent_scheduler.h"
(...skipping 1772 matching lines...) Expand 10 before | Expand all | Expand 10 after
1813 EXPECT_CALL(scheduler, OnProviderActivated()); 1813 EXPECT_CALL(scheduler, OnProviderActivated());
1814 // The scheduler should be notified of clearing the history. 1814 // The scheduler should be notified of clearing the history.
1815 EXPECT_CALL(scheduler, OnSuggestionsCleared()); 1815 EXPECT_CALL(scheduler, OnSuggestionsCleared());
1816 1816
1817 service->SetRemoteSuggestionsScheduler(&scheduler); 1817 service->SetRemoteSuggestionsScheduler(&scheduler);
1818 service->OnStatusChanged(RemoteSuggestionsStatus::ENABLED_AND_SIGNED_OUT, 1818 service->OnStatusChanged(RemoteSuggestionsStatus::ENABLED_AND_SIGNED_OUT,
1819 RemoteSuggestionsStatus::ENABLED_AND_SIGNED_IN); 1819 RemoteSuggestionsStatus::ENABLED_AND_SIGNED_IN);
1820 } 1820 }
1821 1821
1822 } // namespace ntp_snippets 1822 } // namespace ntp_snippets
OLDNEW
« no previous file with comments | « components/ntp_snippets/remote/remote_suggestions_provider_impl.cc ('k') | components/ntp_tiles/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698