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

Unified Diff: chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc

Issue 1309323004: Create a NavigationEntry for the initial blank page. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix GetEntryCount, more tests Created 5 years, 2 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/sessions/sessions_sync_manager_unittest.cc
diff --git a/chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc b/chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc
index 2bea5613d35ce767dfbdd82789a595793cc81fc1..c0cc2fcc8ea7958c9d578c5ee577ea256a0eab7e 100644
--- a/chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc
+++ b/chrome/browser/sync/sessions/sessions_sync_manager_unittest.cc
@@ -379,6 +379,11 @@ class SyncedTabDelegateFake : public SyncedTabDelegate {
blocked_navigations_(NULL) {}
~SyncedTabDelegateFake() override {}
+ bool IsInitialBlankNavigation() const override {
+ // This differs from NavigationControllerImpl, which has an initial blank
+ // NavigationEntry.
+ return GetEntryCount() == 0;
+ }
int GetCurrentEntryIndex() const override { return current_entry_index_; }
void set_current_entry_index(int i) {
current_entry_index_ = i;
« no previous file with comments | « chrome/browser/sync/glue/synced_tab_delegate_unittest.cc ('k') | chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698