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