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

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

Issue 3150034: GTTF: move tests that use WebKit from unit_tests to browser_tests... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/defaults.h" 5 #include "chrome/browser/defaults.h"
6 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 6 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
7 #include "chrome/browser/sessions/session_types.h" 7 #include "chrome/browser/sessions/session_types.h"
8 #include "chrome/browser/sessions/session_service.h" 8 #include "chrome/browser/sessions/session_service.h"
9 #include "chrome/browser/sessions/tab_restore_service.h" 9 #include "chrome/browser/sessions/tab_restore_service.h"
10 #include "chrome/browser/tab_contents/navigation_entry.h" 10 #include "chrome/browser/tab_contents/navigation_entry.h"
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 ASSERT_EQ(1U, service_->entries().size()); 474 ASSERT_EQ(1U, service_->entries().size());
475 475
476 // And verify the entry. 476 // And verify the entry.
477 TabRestoreService::Entry* restored_entry = service_->entries().front(); 477 TabRestoreService::Entry* restored_entry = service_->entries().front();
478 ASSERT_EQ(TabRestoreService::TAB, restored_entry->type); 478 ASSERT_EQ(TabRestoreService::TAB, restored_entry->type);
479 TabRestoreService::Tab* restored_tab = 479 TabRestoreService::Tab* restored_tab =
480 static_cast<TabRestoreService::Tab*>(restored_entry); 480 static_cast<TabRestoreService::Tab*>(restored_entry);
481 EXPECT_EQ(tab_timestamp.ToInternalValue(), 481 EXPECT_EQ(tab_timestamp.ToInternalValue(),
482 restored_tab->timestamp.ToInternalValue()); 482 restored_tab->timestamp.ToInternalValue());
483 } 483 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_messages_unittest.cc ('k') | chrome/browser/sessions/tab_restore_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698