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

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

Issue 8873021: (Base)SessionService: Remove dead code which was only used by the unit tests. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased. Created 9 years 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 f6cd26be0a73981ef850ceab54ef30e45f778a73..25443377d3f55d651e8fe0723628b7e3ae7b9111 100644
--- a/chrome/browser/sessions/session_service_unittest.cc
+++ b/chrome/browser/sessions/session_service_unittest.cc
@@ -622,38 +622,6 @@ TEST_F(SessionServiceTest, PinnedTrue) {
EXPECT_TRUE(CreateAndWriteSessionWithOneTab(true, true));
}
-class GetCurrentSessionCallbackHandler {
- public:
- void OnGotSession(int handle, std::vector<SessionWindow*>* windows) {
- EXPECT_EQ(1U, windows->size());
- EXPECT_EQ(2U, (*windows)[0]->tabs.size());
- EXPECT_EQ(2U, (*windows)[0]->tabs[0]->navigations.size());
- EXPECT_EQ(GURL("http://bar/1"),
- (*windows)[0]->tabs[0]->navigations[0].virtual_url());
- EXPECT_EQ(GURL("http://bar/2"),
- (*windows)[0]->tabs[0]->navigations[1].virtual_url());
- EXPECT_EQ(2U, (*windows)[0]->tabs[1]->navigations.size());
- EXPECT_EQ(GURL("http://foo/1"),
- (*windows)[0]->tabs[1]->navigations[0].virtual_url());
- EXPECT_EQ(GURL("http://foo/2"),
- (*windows)[0]->tabs[1]->navigations[1].virtual_url());
- }
-};
-
-TEST_F(SessionServiceTest, GetCurrentSession) {
- AddTab(browser(), GURL("http://foo/1"));
- NavigateAndCommitActiveTab(GURL("http://foo/2"));
- AddTab(browser(), GURL("http://bar/1"));
- NavigateAndCommitActiveTab(GURL("http://bar/2"));
-
- CancelableRequestConsumer consumer;
- GetCurrentSessionCallbackHandler handler;
- service()->GetCurrentSession(
- &consumer,
- base::Bind(&GetCurrentSessionCallbackHandler::OnGotSession,
- base::Unretained(&handler)));
-}
-
// Test that the notification for SESSION_SERVICE_SAVED is working properly.
TEST_F(SessionServiceTest, SavedSessionNotification) {
content::NotificationRegistrar registrar_;
« 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