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

Side by Side Diff: components/ntp_snippets/ntp_snippets_service_unittest.cc

Issue 2368583002: [NTP Snippets] Cleanups from clang-tidy (Closed)
Patch Set: Created 4 years, 2 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/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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698