blob: 4077dfded0620472af24e36ce47490d3c8899956 [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/developer/debug/debug_agent/integration_tests/message_loop_wrapper.h"
#include "src/developer/debug/shared/platform_message_loop.h"
#include "src/lib/fxl/logging.h"
namespace debug_agent {
MessageLoopWrapper::MessageLoopWrapper() {
loop_ = std::make_unique<debug_ipc::PlatformMessageLoop>();
std::string error_message;
bool success = loop_->Init(&error_message);
FXL_CHECK(success) << error_message;
}
MessageLoopWrapper::~MessageLoopWrapper() { loop_->Cleanup(); }
} // namespace debug_agent