| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #include "chrome/browser/sessions/session_service_test_helper.h" | 5 #include "chrome/browser/sessions/session_service_test_helper.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_vector.h" | 7 #include "base/memory/scoped_vector.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "chrome/browser/sessions/session_service.h" | 9 #include "chrome/browser/sessions/session_service.h" |
| 10 #include "components/sessions/base_session_service_test_helper.h" | 10 #include "components/sessions/core/base_session_service_test_helper.h" |
| 11 #include "components/sessions/serialized_navigation_entry_test_helper.h" | 11 #include "components/sessions/core/serialized_navigation_entry_test_helper.h" |
| 12 #include "components/sessions/session_backend.h" | 12 #include "components/sessions/core/session_backend.h" |
| 13 #include "components/sessions/session_id.h" | 13 #include "components/sessions/core/session_id.h" |
| 14 #include "components/sessions/session_types.h" | 14 #include "components/sessions/core/session_types.h" |
| 15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 16 #include "content/public/test/test_utils.h" | 16 #include "content/public/test/test_utils.h" |
| 17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 18 | 18 |
| 19 using base::Time; | 19 using base::Time; |
| 20 | 20 |
| 21 SessionServiceTestHelper::SessionServiceTestHelper() {} | 21 SessionServiceTestHelper::SessionServiceTestHelper() {} |
| 22 | 22 |
| 23 SessionServiceTestHelper::SessionServiceTestHelper(SessionService* service) | 23 SessionServiceTestHelper::SessionServiceTestHelper(SessionService* service) |
| 24 : service_(service) {} | 24 : service_(service) {} |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 return service_.release(); | 117 return service_.release(); |
| 118 } | 118 } |
| 119 | 119 |
| 120 void SessionServiceTestHelper::RunTaskOnBackendThread( | 120 void SessionServiceTestHelper::RunTaskOnBackendThread( |
| 121 const tracked_objects::Location& from_here, | 121 const tracked_objects::Location& from_here, |
| 122 const base::Closure& task) { | 122 const base::Closure& task) { |
| 123 sessions::BaseSessionServiceTestHelper test_helper( | 123 sessions::BaseSessionServiceTestHelper test_helper( |
| 124 service_->GetBaseSessionServiceForTest()); | 124 service_->GetBaseSessionServiceForTest()); |
| 125 test_helper.RunTaskOnBackendThread(from_here, task); | 125 test_helper.RunTaskOnBackendThread(from_here, task); |
| 126 } | 126 } |
| OLD | NEW |