| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2016 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/previews/previews_service.h" |
| 6 #include "chrome/browser/previews/previews_service_factory.h" |
| 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/test/base/in_process_browser_test.h" |
| 10 #include "content/public/test/browser_test_utils.h" |
| 11 |
| 12 typedef InProcessBrowserTest PreviewsServiceBrowserTest; |
| 13 |
| 14 // Verify that the PreviewsService is initialized for a profile. |
| 15 IN_PROC_BROWSER_TEST_F(PreviewsServiceBrowserTest, VerifyInitialization) { |
| 16 PreviewsService* previews_service = |
| 17 PreviewsServiceFactory::GetForProfile(browser()->profile()); |
| 18 EXPECT_TRUE(previews_service->previews_ui_service()); |
| 19 } |
| OLD | NEW |