| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const SessionID& tab_id, | 48 const SessionID& tab_id, |
| 49 const std::string& user_agent_override); | 49 const std::string& user_agent_override); |
| 50 | 50 |
| 51 void SetForceBrowserNotAliveWithNoWindows( | 51 void SetForceBrowserNotAliveWithNoWindows( |
| 52 bool force_browser_not_alive_with_no_windows); | 52 bool force_browser_not_alive_with_no_windows); |
| 53 | 53 |
| 54 // Reads the contents of the last session. | 54 // Reads the contents of the last session. |
| 55 void ReadWindows(std::vector<SessionWindow*>* windows, | 55 void ReadWindows(std::vector<SessionWindow*>* windows, |
| 56 SessionID::id_type* active_window_id); | 56 SessionID::id_type* active_window_id); |
| 57 | 57 |
| 58 void AssertTabEquals(SessionID& window_id, | 58 void AssertTabEquals(const SessionID& window_id, |
| 59 SessionID& tab_id, | 59 const SessionID& tab_id, |
| 60 int visual_index, | 60 int visual_index, |
| 61 int nav_index, | 61 int nav_index, |
| 62 size_t nav_count, | 62 size_t nav_count, |
| 63 const SessionTab& session_tab); | 63 const SessionTab& session_tab); |
| 64 | 64 |
| 65 void AssertTabEquals(int visual_index, | 65 void AssertTabEquals(int visual_index, |
| 66 int nav_index, | 66 int nav_index, |
| 67 size_t nav_count, | 67 size_t nav_count, |
| 68 const SessionTab& session_tab); | 68 const SessionTab& session_tab); |
| 69 | 69 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 84 void RunTaskOnBackendThread(const tracked_objects::Location& from_here, | 84 void RunTaskOnBackendThread(const tracked_objects::Location& from_here, |
| 85 const base::Closure& task); | 85 const base::Closure& task); |
| 86 | 86 |
| 87 private: | 87 private: |
| 88 scoped_ptr<SessionService> service_; | 88 scoped_ptr<SessionService> service_; |
| 89 | 89 |
| 90 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); | 90 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ | 93 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ |
| OLD | NEW |