| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/sessions/core/base_session_service_test_helper.h" | 5 #include "components/sessions/core/base_session_service_test_helper.h" |
| 6 | 6 |
| 7 #include "components/sessions/core/base_session_service.h" | 7 #include "components/sessions/core/base_session_service.h" |
| 8 #include "components/sessions/core/session_backend.h" | 8 #include "components/sessions/core/session_backend.h" |
| 9 | 9 |
| 10 namespace sessions { | 10 namespace sessions { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 const base::Closure& task) { | 23 const base::Closure& task) { |
| 24 base_session_service_->RunTaskOnBackendThread(from_here, task); | 24 base_session_service_->RunTaskOnBackendThread(from_here, task); |
| 25 } | 25 } |
| 26 | 26 |
| 27 bool BaseSessionServiceTestHelper::ProcessedAnyCommands() { | 27 bool BaseSessionServiceTestHelper::ProcessedAnyCommands() { |
| 28 return base_session_service_->backend_->inited() || | 28 return base_session_service_->backend_->inited() || |
| 29 !base_session_service_->pending_commands().empty(); | 29 !base_session_service_->pending_commands().empty(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 bool BaseSessionServiceTestHelper::ReadLastSessionCommands( | 32 bool BaseSessionServiceTestHelper::ReadLastSessionCommands( |
| 33 ScopedVector<SessionCommand>* commands) { | 33 std::vector<std::unique_ptr<SessionCommand>>* commands) { |
| 34 return base_session_service_->backend_->ReadLastSessionCommandsImpl(commands); | 34 return base_session_service_->backend_->ReadLastSessionCommandsImpl(commands); |
| 35 } | 35 } |
| 36 | 36 |
| 37 } // namespace sessions | 37 } // namespace sessions |
| OLD | NEW |