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

Side by Side Diff: chrome/browser/ntp_snippets/content_suggestions_service_factory_browsertest.cc

Issue 2686053002: Don't instantiate ContentSuggestionsService on non-Android (Closed)
Patch Set: Add browsertest Created 3 years, 10 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ntp_snippets/content_suggestions_service_factory.h"
6
7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/test/base/in_process_browser_test.h"
9 #include "testing/gtest/include/gtest/gtest.h"
10
11 using ContentSuggestionsServiceFactoryTest = InProcessBrowserTest;
12
13 IN_PROC_BROWSER_TEST_F(ContentSuggestionsServiceFactoryTest,
14 CreatesServiceOnlyOnAndroid) {
15 ntp_snippets::ContentSuggestionsService* service =
16 ContentSuggestionsServiceFactory::GetForProfile(browser()->profile());
17 #if defined(OS_ANDROID)
18 EXPECT_TRUE(service);
19 #else
20 EXPECT_FALSE(service);
21 #endif
22 }
OLDNEW
« no previous file with comments | « chrome/browser/ntp_snippets/content_suggestions_service_factory.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698