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

Unified Diff: chrome/browser/sessions/session_service_unittest.cc

Issue 665033003: Removing Migraction code from M17 in session restore (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the unit test which tested the migration code as well Created 6 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
« no previous file with comments | « chrome/browser/sessions/session_service.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_service_unittest.cc
diff --git a/chrome/browser/sessions/session_service_unittest.cc b/chrome/browser/sessions/session_service_unittest.cc
index edbedbe034f1b204ecfad2e4f883f670965e0ad3..d2bd481a6aee047d160f5b358e64a313a8597b2e 100644
--- a/chrome/browser/sessions/session_service_unittest.cc
+++ b/chrome/browser/sessions/session_service_unittest.cc
@@ -825,35 +825,6 @@ TEST_F(SessionServiceTest, RemovePostDataWithPasswords) {
EXPECT_NE(page_state, windows[0]->tabs[0]->navigations[0].page_state());
}
-// This test is only applicable to chromeos.
-#if defined(OS_CHROMEOS)
-// Verifies migration of tab/window closed works.
-TEST_F(SessionServiceTest, CanOpenV1TabClosed) {
- base::FilePath v1_file_path;
- ASSERT_TRUE(PathService::Get(chrome::DIR_TEST_DATA, &v1_file_path));
- // v1_session_file contains a tab closed command with the original id. The
- // file was generated from ClosingTabStaysClosed. If we successfully processed
- // the file we'll have one tab.
- v1_file_path =
- v1_file_path.AppendASCII("sessions").AppendASCII("v1_session_file");
- base::FilePath dest_file_path(path_);
- dest_file_path = dest_file_path.AppendASCII("Current Session");
-
- // Forces closing the file.
- helper_.SetService(NULL);
-
- ASSERT_TRUE(base::CopyFile(v1_file_path, dest_file_path));
-
- SessionService* session_service = new SessionService(path_);
- helper_.SetService(session_service);
- ScopedVector<SessionWindow> windows;
- SessionID::id_type active_window_id = 0;
- helper_.ReadWindows(&(windows.get()), &active_window_id);
- ASSERT_EQ(1u, windows.size());
- EXPECT_EQ(1u, windows[0]->tabs.size());
-}
-#endif // defined(OS_CHROMEOS)
-
TEST_F(SessionServiceTest, ReplacePendingNavigation) {
const std::string base_url("http://google.com/");
SessionID tab_id;
« no previous file with comments | « chrome/browser/sessions/session_service.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698