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

Unified Diff: chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc

Issue 923183003: Move URL fixup to a preliminary phase that doesn't affect virtual URLs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bug in sync tests Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc
diff --git a/chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc b/chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc
index 5b553b080013daca90a5edecd80a3ba89cbd9199..0d6c1da3ff1b49b9ced6ea7d581a9306d82e761d 100644
--- a/chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc
+++ b/chrome/browser/sync/test/integration/single_client_sessions_sync_test.cc
@@ -69,8 +69,7 @@ IN_PROC_BROWSER_TEST_F(SingleClientSessionsSyncTest, TimestampMatchesHistory) {
ASSERT_TRUE(CheckInitialState(0));
// We want a URL that doesn't 404 and has a non-empty title.
- // about:version is simple to render, too.
- const GURL url("about:version");
Charlie Reis 2015/02/17 17:24:46 Sync doesn't allow chrome:// URLs to be synced, so
+ const GURL url("data:text/html,<html><title>Test</title></html>");
ScopedWindowMap windows;
ASSERT_TRUE(OpenTabAndGetLocalWindows(0, url, windows.GetMutable()));
@@ -103,8 +102,7 @@ IN_PROC_BROWSER_TEST_F(SingleClientSessionsSyncTest, ResponseCodeIsPreserved) {
ASSERT_TRUE(CheckInitialState(0));
// We want a URL that doesn't 404 and has a non-empty title.
- // about:version is simple to render, too.
- const GURL url("about:version");
+ const GURL url("data:text/html,<html><title>Test</title></html>");
ScopedWindowMap windows;
ASSERT_TRUE(OpenTabAndGetLocalWindows(0, url, windows.GetMutable()));

Powered by Google App Engine
This is Rietveld 408576698