| 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 25 matching lines...) Expand all Loading... |
| 36 bool select); | 36 bool select); |
| 37 | 37 |
| 38 void SetTabExtensionAppID(const SessionID& window_id, | 38 void SetTabExtensionAppID(const SessionID& window_id, |
| 39 const SessionID& tab_id, | 39 const SessionID& tab_id, |
| 40 const std::string& extension_app_id); | 40 const std::string& extension_app_id); |
| 41 | 41 |
| 42 void SetTabUserAgentOverride(const SessionID& window_id, | 42 void SetTabUserAgentOverride(const SessionID& window_id, |
| 43 const SessionID& tab_id, | 43 const SessionID& tab_id, |
| 44 const std::string& user_agent_override); | 44 const std::string& user_agent_override); |
| 45 | 45 |
| 46 void SetForceBrowserNotAliveWithNoWindows( |
| 47 bool force_browser_not_alive_with_no_windows); |
| 48 |
| 46 // Reads the contents of the last session. | 49 // Reads the contents of the last session. |
| 47 void ReadWindows(std::vector<SessionWindow*>* windows); | 50 void ReadWindows(std::vector<SessionWindow*>* windows); |
| 48 | 51 |
| 49 void AssertTabEquals(SessionID& window_id, | 52 void AssertTabEquals(SessionID& window_id, |
| 50 SessionID& tab_id, | 53 SessionID& tab_id, |
| 51 int visual_index, | 54 int visual_index, |
| 52 int nav_index, | 55 int nav_index, |
| 53 size_t nav_count, | 56 size_t nav_count, |
| 54 const SessionTab& session_tab); | 57 const SessionTab& session_tab); |
| 55 | 58 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 71 | 74 |
| 72 SessionBackend* backend(); | 75 SessionBackend* backend(); |
| 73 | 76 |
| 74 private: | 77 private: |
| 75 scoped_ptr<SessionService> service_; | 78 scoped_ptr<SessionService> service_; |
| 76 | 79 |
| 77 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); | 80 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); |
| 78 }; | 81 }; |
| 79 | 82 |
| 80 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ | 83 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ |
| OLD | NEW |