OLD | NEW |
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/ntp_snippets_service.h" | 5 #include "components/ntp_snippets/ntp_snippets_service.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 using image_fetcher::ImageFetcher; | 47 using image_fetcher::ImageFetcher; |
48 using image_fetcher::ImageFetcherDelegate; | 48 using image_fetcher::ImageFetcherDelegate; |
49 using testing::ElementsAre; | 49 using testing::ElementsAre; |
50 using testing::Eq; | 50 using testing::Eq; |
51 using testing::InSequence; | 51 using testing::InSequence; |
52 using testing::Invoke; | 52 using testing::Invoke; |
53 using testing::IsEmpty; | 53 using testing::IsEmpty; |
54 using testing::Mock; | 54 using testing::Mock; |
55 using testing::MockFunction; | 55 using testing::MockFunction; |
56 using testing::NiceMock; | 56 using testing::NiceMock; |
57 using testing::Return; | |
58 using testing::SaveArg; | 57 using testing::SaveArg; |
59 using testing::SizeIs; | 58 using testing::SizeIs; |
60 using testing::StartsWith; | 59 using testing::StartsWith; |
61 using testing::WithArgs; | 60 using testing::WithArgs; |
62 using testing::_; | 61 using testing::_; |
63 | 62 |
64 namespace ntp_snippets { | 63 namespace ntp_snippets { |
65 | 64 |
66 namespace { | 65 namespace { |
67 | 66 |
(...skipping 976 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 end = base::Time::FromTimeT(456); | 1043 end = base::Time::FromTimeT(456); |
1045 base::Callback<bool(const GURL& url)> filter; | 1044 base::Callback<bool(const GURL& url)> filter; |
1046 service->ClearHistory(begin, end, filter); | 1045 service->ClearHistory(begin, end, filter); |
1047 | 1046 |
1048 EXPECT_THAT(service->GetSnippetsForTesting(articles_category()), IsEmpty()); | 1047 EXPECT_THAT(service->GetSnippetsForTesting(articles_category()), IsEmpty()); |
1049 EXPECT_THAT(service->GetDismissedSnippetsForTesting(articles_category()), | 1048 EXPECT_THAT(service->GetDismissedSnippetsForTesting(articles_category()), |
1050 IsEmpty()); | 1049 IsEmpty()); |
1051 } | 1050 } |
1052 | 1051 |
1053 } // namespace ntp_snippets | 1052 } // namespace ntp_snippets |
OLD | NEW |