~ubuntu-branches/ubuntu/trusty/mir/trusty-proposed

« back to all changes in this revision

Viewing changes to tests/unit-tests/client/input/test_xkb_mapper.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Daniel van Vugt, Ubuntu daily release
  • Date: 2014-01-08 02:04:38 UTC
  • mfrom: (1.1.54)
  • Revision ID: package-import@ubuntu.com-20140108020438-ikbu7qqm9v2l026y
Tags: 0.1.3+14.04.20140108-0ubuntu1
[ Daniel van Vugt ]
* Preparing for release 0.1.3

[ Ubuntu daily release ]
* Automatic snapshot from revision 1170

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
    ev.action = action;
37
37
    ev.scan_code = scan_code;
38
38
    ev.repeat_count = 0;
39
 
    
 
39
 
40
40
    mapper.update_state_and_map_event(ev);
41
41
    return ev.key_code;
42
42
}
47
47
    ev.action = action;
48
48
    ev.scan_code = scan_code;
49
49
    ev.repeat_count = 1;
50
 
    
 
50
 
51
51
    mapper.update_state_and_map_event(ev);
52
52
    return ev.key_code;
53
53
}
57
57
TEST(XKBMapper, maps_generic_us_english_keys)
58
58
{
59
59
    mircv::XKBMapper mapper;
60
 
    
 
60
 
61
61
    EXPECT_EQ(XKB_KEY_4, map_key(mapper, mir_key_action_down, KEY_4));
62
62
    EXPECT_EQ(XKB_KEY_Shift_L, map_key(mapper, mir_key_action_down, KEY_LEFTSHIFT));
63
63
    EXPECT_EQ(XKB_KEY_dollar, map_key(mapper, mir_key_action_down, KEY_4));