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

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

Issue 22363005: Switch BaseSessionService to use SequencedWorkerPool instead of FILE thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const SessionTab& session_tab); 63 const SessionTab& session_tab);
64 64
65 void AssertNavigationEquals( 65 void AssertNavigationEquals(
66 const sessions::SerializedNavigationEntry& expected, 66 const sessions::SerializedNavigationEntry& expected,
67 const sessions::SerializedNavigationEntry& actual); 67 const sessions::SerializedNavigationEntry& actual);
68 68
69 void AssertSingleWindowWithSingleTab( 69 void AssertSingleWindowWithSingleTab(
70 const std::vector<SessionWindow*>& windows, 70 const std::vector<SessionWindow*>& windows,
71 size_t nav_count); 71 size_t nav_count);
72 72
73 void set_service(SessionService* service) { service_.reset(service); } 73 void SetService(SessionService* service);
74 SessionService* ReleaseService() { return service_.release(); } 74 SessionService* ReleaseService() { return service_.release(); }
75 SessionService* service() { return service_.get(); } 75 SessionService* service() { return service_.get(); }
76 76
77 SessionBackend* backend(); 77 SessionBackend* backend();
78 78
79 private: 79 private:
80 scoped_ptr<SessionService> service_; 80 scoped_ptr<SessionService> service_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); 82 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper);
83 }; 83 };
84 84
85 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ 85 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698