#include "components/sessions/core/command_storage_manager_test_helper.h"
#include "base/functional/bind.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/bind.h"
#include "components/sessions/core/command_storage_backend.h"
#include "components/sessions/core/command_storage_manager.h"
namespace sessions {
CommandStorageManagerTestHelper::CommandStorageManagerTestHelper(
CommandStorageManager* command_storage_manager)
: … { … }
void CommandStorageManagerTestHelper::RunTaskOnBackendThread(
const base::Location& from_here,
base::OnceClosure task) { … }
void CommandStorageManagerTestHelper::RunMessageLoopUntilBackendDone() { … }
bool CommandStorageManagerTestHelper::ProcessedAnyCommands() { … }
std::vector<std::unique_ptr<SessionCommand>>
CommandStorageManagerTestHelper::ReadLastSessionCommands() { … }
scoped_refptr<base::SequencedTaskRunner>
CommandStorageManagerTestHelper::GetBackendTaskRunner() { … }
void CommandStorageManagerTestHelper::ForceAppendCommandsToFailForTesting() { … }
}