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

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

Issue 2598963005: Include-what-you-use for WrapUnique/MakeUnique. (Closed)
Patch Set: restore order of includes in x11_topmost_window_finder_interactive_uitest.cc Created 3 years, 12 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_status_service.h" 5 #include "components/ntp_snippets/remote/remote_suggestions_status_service.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/memory/ptr_util.h"
9 #include "components/ntp_snippets/features.h" 10 #include "components/ntp_snippets/features.h"
10 #include "components/ntp_snippets/ntp_snippets_constants.h" 11 #include "components/ntp_snippets/ntp_snippets_constants.h"
11 #include "components/ntp_snippets/pref_names.h" 12 #include "components/ntp_snippets/pref_names.h"
12 #include "components/ntp_snippets/remote/test_utils.h" 13 #include "components/ntp_snippets/remote/test_utils.h"
13 #include "components/prefs/pref_registry_simple.h" 14 #include "components/prefs/pref_registry_simple.h"
14 #include "components/prefs/testing_pref_service.h" 15 #include "components/prefs/testing_pref_service.h"
15 #include "components/signin/core/browser/account_tracker_service.h" 16 #include "components/signin/core/browser/account_tracker_service.h"
16 #include "components/signin/core/browser/fake_signin_manager.h" 17 #include "components/signin/core/browser/fake_signin_manager.h"
17 #include "components/signin/core/browser/test_signin_client.h" 18 #include "components/signin/core/browser/test_signin_client.h"
18 #include "components/signin/core/common/signin_pref_names.h" 19 #include "components/signin/core/common/signin_pref_names.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 EXPECT_EQ(RemoteSuggestionsStatus::EXPLICITLY_DISABLED, 83 EXPECT_EQ(RemoteSuggestionsStatus::EXPLICITLY_DISABLED,
83 service->GetStatusFromDeps()); 84 service->GetStatusFromDeps());
84 85
85 // The other dependencies shouldn't matter anymore. 86 // The other dependencies shouldn't matter anymore.
86 utils_.fake_signin_manager()->SignIn("foo@bar.com"); 87 utils_.fake_signin_manager()->SignIn("foo@bar.com");
87 EXPECT_EQ(RemoteSuggestionsStatus::EXPLICITLY_DISABLED, 88 EXPECT_EQ(RemoteSuggestionsStatus::EXPLICITLY_DISABLED,
88 service->GetStatusFromDeps()); 89 service->GetStatusFromDeps());
89 } 90 }
90 91
91 } // namespace ntp_snippets 92 } // namespace ntp_snippets
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698