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

Unified Diff: chrome/browser/tab_contents/view_source_browsertest.cc

Issue 2924383003: [MD Bookmarks] Enable by default. (Closed)
Patch Set: more tests Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/view_source_browsertest.cc
diff --git a/chrome/browser/tab_contents/view_source_browsertest.cc b/chrome/browser/tab_contents/view_source_browsertest.cc
index b988896850f09db668ab54b4cfc5de616e651f55..f6165108cea8cdd9c5dfa3b5e1d0e7c24fdfca0b 100644
--- a/chrome/browser/tab_contents/view_source_browsertest.cc
+++ b/chrome/browser/tab_contents/view_source_browsertest.cc
@@ -5,11 +5,11 @@
#include "base/strings/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
#include "chrome/browser/chrome_notification_types.h"
+#include "chrome/browser/extensions/extension_browsertest.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_commands.h"
#include "chrome/browser/ui/tabs/tab_strip_model.h"
#include "chrome/common/url_constants.h"
-#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/notification_service.h"
@@ -27,7 +27,7 @@ const char kTestHtml[] = "/viewsource/test.html";
const char kTestMedia[] = "/media/pink_noise_140ms.wav";
}
-typedef InProcessBrowserTest ViewSourceTest;
+typedef ExtensionBrowserTest ViewSourceTest;
// This test renders a page in view-source and then checks to see if the title
// set in the html was set successfully (it shouldn't because we rendered the
@@ -192,6 +192,9 @@ IN_PROC_BROWSER_TEST_F(ViewSourceTest,
IN_PROC_BROWSER_TEST_F(ViewSourceTest, ViewSourceTabRestore) {
ASSERT_TRUE(embedded_test_server()->Start());
+ LoadExtension(
+ test_data_dir_.AppendASCII("browsertest/url_rewrite/bookmarks"));
+
// Go to the Chrome bookmarks URL. It should redirect to the bookmark
// manager Chrome extension.
GURL bookmarks_url(chrome::kChromeUIBookmarksURL);

Powered by Google App Engine
This is Rietveld 408576698