OLD | NEW |
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 const sessions::SerializedNavigationEntry& actual); | 72 const sessions::SerializedNavigationEntry& actual); |
73 | 73 |
74 void AssertSingleWindowWithSingleTab( | 74 void AssertSingleWindowWithSingleTab( |
75 const std::vector<SessionWindow*>& windows, | 75 const std::vector<SessionWindow*>& windows, |
76 size_t nav_count); | 76 size_t nav_count); |
77 | 77 |
78 void SetService(SessionService* service); | 78 void SetService(SessionService* service); |
79 SessionService* ReleaseService() { return service_.release(); } | 79 SessionService* ReleaseService() { return service_.release(); } |
80 SessionService* service() { return service_.get(); } | 80 SessionService* service() { return service_.get(); } |
81 | 81 |
82 SessionBackend* backend(); | |
83 | |
84 void RunTaskOnBackendThread(const tracked_objects::Location& from_here, | 82 void RunTaskOnBackendThread(const tracked_objects::Location& from_here, |
85 const base::Closure& task); | 83 const base::Closure& task); |
86 | 84 |
87 private: | 85 private: |
88 scoped_ptr<SessionService> service_; | 86 scoped_ptr<SessionService> service_; |
89 | 87 |
90 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); | 88 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); |
91 }; | 89 }; |
92 | 90 |
93 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ | 91 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ |
OLD | NEW |