OLD | NEW |
(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 } |
OLD | NEW |