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

Unified Diff: chrome/browser/previews/previews_service_browser_test.cc

Issue 2472863002: Adding offline navigations to the previews blacklist (Closed)
Patch Set: megjablon comments Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/previews/previews_infobar_tab_helper.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/previews/previews_service_browser_test.cc
diff --git a/chrome/browser/previews/previews_service_browser_test.cc b/chrome/browser/previews/previews_service_browser_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b031c387b51cd0c56fc83d16b737c1328769cbee
--- /dev/null
+++ b/chrome/browser/previews/previews_service_browser_test.cc
@@ -0,0 +1,19 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/previews/previews_service.h"
+#include "chrome/browser/previews/previews_service_factory.h"
+#include "chrome/browser/profiles/profile.h"
+#include "chrome/browser/ui/browser.h"
+#include "chrome/test/base/in_process_browser_test.h"
+#include "content/public/test/browser_test_utils.h"
+
+typedef InProcessBrowserTest PreviewsServiceBrowserTest;
+
+// Verify that the PreviewsService is initialized for a profile.
+IN_PROC_BROWSER_TEST_F(PreviewsServiceBrowserTest, VerifyInitialization) {
+ PreviewsService* previews_service =
+ PreviewsServiceFactory::GetForProfile(browser()->profile());
+ EXPECT_TRUE(previews_service->previews_ui_service());
+}
« no previous file with comments | « chrome/browser/previews/previews_infobar_tab_helper.cc ('k') | chrome/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698