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

Side by Side Diff: chrome/browser/sessions/tab_restore_service_unittest.cc

Issue 155071: Do some refactoring of renderer_host.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/renderer_host/test_render_view_host.h" 5 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
6 #include "chrome/browser/sessions/session_types.h" 6 #include "chrome/browser/sessions/session_types.h"
7 #include "chrome/browser/sessions/tab_restore_service.h" 7 #include "chrome/browser/sessions/tab_restore_service.h"
8 #include "chrome/browser/tab_contents/navigation_entry.h" 8 #include "chrome/browser/tab_contents/navigation_entry.h"
9 #include "chrome/test/testing_profile.h" 9 #include "chrome/test/testing_profile.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 class TabRestoreServiceTest : public RenderViewHostTestHarness { 12 class TabRestoreServiceTest : public RenderViewHostTestHarness {
13 public: 13 public:
14 TabRestoreServiceTest() { 14 TabRestoreServiceTest() {
15 url1_ = GURL("http://1"); 15 url1_ = GURL("http://1");
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 TabRestoreService::Entry* entry = service_->entries().front(); 310 TabRestoreService::Entry* entry = service_->entries().front();
311 ASSERT_EQ(TabRestoreService::WINDOW, entry->type); 311 ASSERT_EQ(TabRestoreService::WINDOW, entry->type);
312 TabRestoreService::Window* window = 312 TabRestoreService::Window* window =
313 static_cast<TabRestoreService::Window*>(entry); 313 static_cast<TabRestoreService::Window*>(entry);
314 ASSERT_EQ(1U, window->tabs.size()); 314 ASSERT_EQ(1U, window->tabs.size());
315 EXPECT_EQ(0, window->selected_tab_index); 315 EXPECT_EQ(0, window->selected_tab_index);
316 ASSERT_EQ(1U, window->tabs[0].navigations.size()); 316 ASSERT_EQ(1U, window->tabs[0].navigations.size());
317 EXPECT_EQ(0, window->tabs[0].current_navigation_index); 317 EXPECT_EQ(0, window->tabs[0].current_navigation_index);
318 EXPECT_TRUE(url1_ == window->tabs[0].navigations[0].url()); 318 EXPECT_TRUE(url1_ == window->tabs[0].navigations[0].url());
319 } 319 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698