brintos

brintos / llvm-project-archived public Read only

0
0
Text · 847 B · 4fd6cd5 Raw
28 lines · cpp
1//===-- DAPTest.cpp -------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#include "DAP.h"10#include "Protocol/ProtocolBase.h"11#include "TestBase.h"12#include "gmock/gmock.h"13#include "gtest/gtest.h"14#include <optional>15 16using namespace lldb_dap;17using namespace lldb_dap_tests;18using namespace lldb_dap::protocol;19using namespace testing;20 21class DAPTest : public TransportBase {};22 23TEST_F(DAPTest, SendProtocolMessages) {24  dap->Send(Event{/*event=*/"my-event", /*body=*/std::nullopt});25  EXPECT_CALL(client, Received(IsEvent("my-event")));26  Run();27}28