removed unused test
This commit is contained in:
parent
3ddb7ef9e3
commit
41c1319134
|
@ -68,14 +68,13 @@ private:
|
||||||
CMSWindowsHook m_hook;
|
CMSWindowsHook m_hook;
|
||||||
};
|
};
|
||||||
|
|
||||||
TEST_F(CMSWindowsKeyStateTests, disable_nonWin95OS_eventQueueNotUsed)
|
TEST_F(CMSWindowsKeyStateTests, disable_eventQueueNotUsed)
|
||||||
{
|
{
|
||||||
NiceMock<CMockEventQueue> eventQueue;
|
NiceMock<CMockEventQueue> eventQueue;
|
||||||
CMSWindowsDesks* desks = newDesks(&eventQueue);
|
CMSWindowsDesks* desks = newDesks(&eventQueue);
|
||||||
CMockKeyMap keyMap;
|
CMockKeyMap keyMap;
|
||||||
CMSWindowsKeyState keyState(desks, getEventTarget(), &eventQueue, keyMap);
|
CMSWindowsKeyState keyState(desks, getEventTarget(), &eventQueue, keyMap);
|
||||||
|
|
||||||
// in anything above win95-family, event handler should not be called.
|
|
||||||
EXPECT_CALL(eventQueue, removeHandler(_, _)).Times(0);
|
EXPECT_CALL(eventQueue, removeHandler(_, _)).Times(0);
|
||||||
|
|
||||||
keyState.disable();
|
keyState.disable();
|
||||||
|
@ -122,19 +121,3 @@ TEST_F(CMSWindowsKeyStateTests, saveModifiers_noModifiers_savedModifiers0)
|
||||||
ASSERT_EQ(0, keyState.getSavedModifiers());
|
ASSERT_EQ(0, keyState.getSavedModifiers());
|
||||||
delete desks;
|
delete desks;
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
TEST_F(CMSWindowsKeyStateTests, saveModifiers_shiftKeyDown_savedModifiers4)
|
|
||||||
{
|
|
||||||
NiceMock<CMockEventQueue> eventQueue;
|
|
||||||
CMSWindowsDesks* desks = newDesks(eventQueue);
|
|
||||||
CMockKeyMap keyMap;
|
|
||||||
CMSWindowsKeyState keyState(desks, getEventTarget(), eventQueue, keyMap);
|
|
||||||
desks->enable();
|
|
||||||
desks->fakeKeyEvent(1, 1, true, false);
|
|
||||||
|
|
||||||
keyState.saveModifiers();
|
|
||||||
|
|
||||||
ASSERT_EQ(1, keyState.getSavedModifiers());
|
|
||||||
delete desks;
|
|
||||||
}
|
|
||||||
*/
|
|
Loading…
Reference in New Issue