Lines Matching refs:coords
42 PointerCoords coords; in TEST_F() local
43 coords.clear(); in TEST_F()
45 ASSERT_EQ(0ULL, coords.bits); in TEST_F()
49 PointerCoords coords; in TEST_F() local
50 coords.clear(); in TEST_F()
53 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
55 ASSERT_EQ(0, coords.getAxisValue(1)) in TEST_F()
59 ASSERT_EQ(OK, coords.setAxisValue(1, 5)); in TEST_F()
60 ASSERT_EQ(5, coords.values[0]); in TEST_F()
61 ASSERT_EQ(0x4000000000000000ULL, coords.bits); in TEST_F()
63 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
65 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
69 ASSERT_EQ(OK, coords.setAxisValue(3, 2)); in TEST_F()
70 ASSERT_EQ(0x5000000000000000ULL, coords.bits); in TEST_F()
71 ASSERT_EQ(5, coords.values[0]); in TEST_F()
72 ASSERT_EQ(2, coords.values[1]); in TEST_F()
74 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
76 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
78 ASSERT_EQ(0, coords.getAxisValue(2)) in TEST_F()
80 ASSERT_EQ(2, coords.getAxisValue(3)) in TEST_F()
84 ASSERT_EQ(OK, coords.setAxisValue(0, 4)); in TEST_F()
85 ASSERT_EQ(0xd000000000000000ULL, coords.bits); in TEST_F()
86 ASSERT_EQ(4, coords.values[0]); in TEST_F()
87 ASSERT_EQ(5, coords.values[1]); in TEST_F()
88 ASSERT_EQ(2, coords.values[2]); in TEST_F()
90 ASSERT_EQ(4, coords.getAxisValue(0)) in TEST_F()
92 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
94 ASSERT_EQ(0, coords.getAxisValue(2)) in TEST_F()
96 ASSERT_EQ(2, coords.getAxisValue(3)) in TEST_F()
100 ASSERT_EQ(OK, coords.setAxisValue(2, 1)); in TEST_F()
101 ASSERT_EQ(0xf000000000000000ULL, coords.bits); in TEST_F()
102 ASSERT_EQ(4, coords.values[0]); in TEST_F()
103 ASSERT_EQ(5, coords.values[1]); in TEST_F()
104 ASSERT_EQ(1, coords.values[2]); in TEST_F()
105 ASSERT_EQ(2, coords.values[3]); in TEST_F()
107 ASSERT_EQ(4, coords.getAxisValue(0)) in TEST_F()
109 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
111 ASSERT_EQ(1, coords.getAxisValue(2)) in TEST_F()
113 ASSERT_EQ(2, coords.getAxisValue(3)) in TEST_F()
117 ASSERT_EQ(OK, coords.setAxisValue(1, 6)); in TEST_F()
118 ASSERT_EQ(0xf000000000000000ULL, coords.bits); in TEST_F()
119 ASSERT_EQ(4, coords.values[0]); in TEST_F()
120 ASSERT_EQ(6, coords.values[1]); in TEST_F()
121 ASSERT_EQ(1, coords.values[2]); in TEST_F()
122 ASSERT_EQ(2, coords.values[3]); in TEST_F()
124 ASSERT_EQ(4, coords.getAxisValue(0)) in TEST_F()
126 ASSERT_EQ(6, coords.getAxisValue(1)) in TEST_F()
128 ASSERT_EQ(1, coords.getAxisValue(2)) in TEST_F()
130 ASSERT_EQ(2, coords.getAxisValue(3)) in TEST_F()
135 ASSERT_EQ(OK, coords.setAxisValue(axis, axis)); in TEST_F()
137 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); in TEST_F()
141 ASSERT_EQ(NO_MEMORY, coords.setAxisValue(PointerCoords::MAX_AXES, 100)); in TEST_F()
142 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); in TEST_F()