Skip to content

Commit

Permalink
Remove the adapter tests that are no longer applicable with the tab s…
Browse files Browse the repository at this point in the history
…top functionality removed from the ConGetSet interface.
  • Loading branch information
j4james committed Mar 29, 2020
1 parent d868e4c commit 209bbce
Showing 1 changed file with 0 additions and 72 deletions.
72 changes: 0 additions & 72 deletions src/terminal/adapter/ut_adapter/adapterTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,49 +445,6 @@ class TestGetSet final : public ConGetSet
return true;
}

bool PrivateHorizontalTabSet() override
{
Log::Comment(L"PrivateHorizontalTabSet MOCK called...");
// We made it through the adapter, woo! Return true.
return TRUE;
}

bool PrivateForwardTab(const size_t numTabs) override
{
Log::Comment(L"PrivateForwardTab MOCK called...");
if (_privateForwardTabResult)
{
VERIFY_ARE_EQUAL(_expectedNumTabs, numTabs);
}
return TRUE;
}

bool PrivateBackwardsTab(const size_t numTabs) override
{
Log::Comment(L"PrivateBackwardsTab MOCK called...");
if (_privateBackwardsTabResult)
{
VERIFY_ARE_EQUAL(_expectedNumTabs, numTabs);
}
return TRUE;
}

bool PrivateTabClear(const bool clearAll) override
{
Log::Comment(L"PrivateTabClear MOCK called...");
if (_privateTabClearResult)
{
VERIFY_ARE_EQUAL(_expectedClearAll, clearAll);
}
return TRUE;
}

bool PrivateSetDefaultTabStops() override
{
Log::Comment(L"PrivateSetDefaultTabStops MOCK called...");
return TRUE;
}

bool PrivateEnableVT200MouseMode(const bool enabled) override
{
Log::Comment(L"PrivateEnableVT200MouseMode MOCK called...");
Expand Down Expand Up @@ -924,12 +881,6 @@ class TestGetSet final : public ConGetSet

bool _setConsoleTitleWResult = false;
std::wstring_view _expectedWindowTitle{};
bool _privateHorizontalTabSetResult = false;
bool _privateForwardTabResult = false;
bool _privateBackwardsTabResult = false;
size_t _expectedNumTabs = 0;
bool _privateTabClearResult = false;
bool _expectedClearAll = false;
bool _expectedMouseEnabled = false;
bool _expectedAlternateScrollEnabled = false;
bool _privateEnableVT200MouseModeResult = false;
Expand Down Expand Up @@ -2051,29 +2002,6 @@ class AdapterTest
VERIFY_IS_TRUE(_pDispatch.get()->LineFeed(DispatchTypes::LineFeedType::DependsOnMode));
}

TEST_METHOD(TabSetClearTests)
{
Log::Comment(L"Starting test...");

_testGetSet->_privateHorizontalTabSetResult = TRUE;
VERIFY_IS_TRUE(_pDispatch.get()->HorizontalTabSet());

_testGetSet->_expectedNumTabs = 16;

_testGetSet->_privateForwardTabResult = TRUE;
VERIFY_IS_TRUE(_pDispatch.get()->ForwardTab(16));

_testGetSet->_privateBackwardsTabResult = TRUE;
VERIFY_IS_TRUE(_pDispatch.get()->BackwardsTab(16));

_testGetSet->_privateTabClearResult = TRUE;
_testGetSet->_expectedClearAll = true;
VERIFY_IS_TRUE(_pDispatch.get()->TabClear(DispatchTypes::TabClearType::ClearAllColumns));

_testGetSet->_expectedClearAll = false;
VERIFY_IS_TRUE(_pDispatch.get()->TabClear(DispatchTypes::TabClearType::ClearCurrentColumn));
}

TEST_METHOD(SetConsoleTitleTest)
{
Log::Comment(L"Starting test...");
Expand Down

0 comments on commit 209bbce

Please sign in to comment.