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

Side by Side Diff: chrome/browser/sessions/session_service_test_helper.h

Issue 4158009: Session sync integration tests. Left out many client for now, since even... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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
« no previous file with comments | « chrome/browser/sessions/session_service.h ('k') | chrome/browser/sessions/session_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ 5 #ifndef CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_
6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ 6 #define CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 const SessionTab& session_tab); 56 const SessionTab& session_tab);
57 57
58 void AssertNavigationEquals(const TabNavigation& expected, 58 void AssertNavigationEquals(const TabNavigation& expected,
59 const TabNavigation& actual); 59 const TabNavigation& actual);
60 60
61 void AssertSingleWindowWithSingleTab( 61 void AssertSingleWindowWithSingleTab(
62 const std::vector<SessionWindow*>& windows, 62 const std::vector<SessionWindow*>& windows,
63 size_t nav_count); 63 size_t nav_count);
64 64
65 void set_service(SessionService* service) { service_ = service; } 65 void set_service(SessionService* service) { service_ = service; }
66 SessionService* ReleaseService() { return service_.release(); }
66 SessionService* service() { return service_.get(); } 67 SessionService* service() { return service_.get(); }
67 68
68 SessionBackend* backend(); 69 SessionBackend* backend();
69 70
70 private: 71 private:
71 scoped_refptr<SessionService> service_; 72 scoped_refptr<SessionService> service_;
72 73
73 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); 74 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper);
74 }; 75 };
75 76
76 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ 77 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_service.h ('k') | chrome/browser/sessions/session_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698