| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
| 16 #include "components/sessions/core/session_id.h" | 16 #include "components/sessions/core/session_id.h" |
| 17 | 17 |
| 18 class SessionService; | 18 class SessionService; |
| 19 | 19 |
| 20 namespace base { | |
| 21 class RunLoop; | |
| 22 } | |
| 23 | |
| 24 namespace sessions { | 20 namespace sessions { |
| 25 class SerializedNavigationEntry; | 21 class SerializedNavigationEntry; |
| 26 class SessionCommand; | |
| 27 struct SessionTab; | 22 struct SessionTab; |
| 28 struct SessionWindow; | 23 struct SessionWindow; |
| 29 } | 24 } |
| 30 | 25 |
| 31 // A simple class that makes writing SessionService related tests easier. | 26 // A simple class that makes writing SessionService related tests easier. |
| 32 | 27 |
| 33 class SessionServiceTestHelper { | 28 class SessionServiceTestHelper { |
| 34 public: | 29 public: |
| 35 SessionServiceTestHelper(); | 30 SessionServiceTestHelper(); |
| 36 explicit SessionServiceTestHelper(SessionService* service); | 31 explicit SessionServiceTestHelper(SessionService* service); |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 void RunTaskOnBackendThread(const tracked_objects::Location& from_here, | 79 void RunTaskOnBackendThread(const tracked_objects::Location& from_here, |
| 85 const base::Closure& task); | 80 const base::Closure& task); |
| 86 | 81 |
| 87 private: | 82 private: |
| 88 std::unique_ptr<SessionService> service_; | 83 std::unique_ptr<SessionService> service_; |
| 89 | 84 |
| 90 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); | 85 DISALLOW_COPY_AND_ASSIGN(SessionServiceTestHelper); |
| 91 }; | 86 }; |
| 92 | 87 |
| 93 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ | 88 #endif // CHROME_BROWSER_SESSIONS_SESSION_SERVICE_TEST_HELPER_H_ |
| OLD | NEW |