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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |