Back to index

unity  6.0.0
Functions
test_unityshell_private.cpp File Reference
#include <gtest/gtest.h>
#include "UnityshellPrivate.h"

Go to the source code of this file.

Functions

 TEST (TestUnityshellPrivate, TestCreateActionString)

Function Documentation

TEST ( TestUnityshellPrivate  ,
TestCreateActionString   
)

Definition at line 27 of file test_unityshell_private.cpp.

{
  EXPECT_EQ(impl::CreateActionString("<Super>", 'a'), "<Super>a");
  EXPECT_EQ(impl::CreateActionString("<Super>", '1'), "<Super>1");

  EXPECT_EQ(impl::CreateActionString("<Alt>", 'a'), "<Alt>a");
  EXPECT_EQ(impl::CreateActionString("<Alt>", '1'), "<Alt>1");
  
  EXPECT_EQ(impl::CreateActionString("<Super>", '1', impl::ActionModifiers::USE_NUMPAD), "<Super>KP_1");

  EXPECT_EQ(impl::CreateActionString("<Super>", '1', impl::ActionModifiers::USE_SHIFT), "<Super><Shift>1");
}

Here is the call graph for this function: