| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |