• Home
  • Raw
  • Download

Lines Matching refs:coords

37     PointerCoords coords;  in TEST_F()  local
38 coords.clear(); in TEST_F()
40 ASSERT_EQ(0ULL, coords.bits); in TEST_F()
45 PointerCoords coords; in TEST_F() local
46 coords.clear(); in TEST_F()
49 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
51 ASSERT_EQ(0, coords.getAxisValue(1)) in TEST_F()
55 ASSERT_EQ(OK, coords.setAxisValue(1, 5)); in TEST_F()
56 ASSERT_EQ(5, coords.values[0]); in TEST_F()
57 ASSERT_EQ(0x4000000000000000ULL, coords.bits); in TEST_F()
59 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
61 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
65 ASSERT_EQ(OK, coords.setAxisValue(3, 2)); in TEST_F()
66 ASSERT_EQ(0x5000000000000000ULL, coords.bits); in TEST_F()
67 ASSERT_EQ(5, coords.values[0]); in TEST_F()
68 ASSERT_EQ(2, coords.values[1]); in TEST_F()
70 ASSERT_EQ(0, coords.getAxisValue(0)) in TEST_F()
72 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
74 ASSERT_EQ(0, coords.getAxisValue(2)) in TEST_F()
76 ASSERT_EQ(2, coords.getAxisValue(3)) in TEST_F()
80 ASSERT_EQ(OK, coords.setAxisValue(0, 4)); in TEST_F()
81 ASSERT_EQ(0xd000000000000000ULL, coords.bits); in TEST_F()
82 ASSERT_EQ(4, coords.values[0]); in TEST_F()
83 ASSERT_EQ(5, coords.values[1]); in TEST_F()
84 ASSERT_EQ(2, coords.values[2]); in TEST_F()
86 ASSERT_EQ(4, coords.getAxisValue(0)) in TEST_F()
88 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
90 ASSERT_EQ(0, coords.getAxisValue(2)) in TEST_F()
92 ASSERT_EQ(2, coords.getAxisValue(3)) in TEST_F()
96 ASSERT_EQ(OK, coords.setAxisValue(2, 1)); in TEST_F()
97 ASSERT_EQ(0xf000000000000000ULL, coords.bits); in TEST_F()
98 ASSERT_EQ(4, coords.values[0]); in TEST_F()
99 ASSERT_EQ(5, coords.values[1]); in TEST_F()
100 ASSERT_EQ(1, coords.values[2]); in TEST_F()
101 ASSERT_EQ(2, coords.values[3]); in TEST_F()
103 ASSERT_EQ(4, coords.getAxisValue(0)) in TEST_F()
105 ASSERT_EQ(5, coords.getAxisValue(1)) in TEST_F()
107 ASSERT_EQ(1, coords.getAxisValue(2)) in TEST_F()
109 ASSERT_EQ(2, coords.getAxisValue(3)) in TEST_F()
113 ASSERT_EQ(OK, coords.setAxisValue(1, 6)); in TEST_F()
114 ASSERT_EQ(0xf000000000000000ULL, coords.bits); in TEST_F()
115 ASSERT_EQ(4, coords.values[0]); in TEST_F()
116 ASSERT_EQ(6, coords.values[1]); in TEST_F()
117 ASSERT_EQ(1, coords.values[2]); in TEST_F()
118 ASSERT_EQ(2, coords.values[3]); in TEST_F()
120 ASSERT_EQ(4, coords.getAxisValue(0)) in TEST_F()
122 ASSERT_EQ(6, coords.getAxisValue(1)) in TEST_F()
124 ASSERT_EQ(1, coords.getAxisValue(2)) in TEST_F()
126 ASSERT_EQ(2, coords.getAxisValue(3)) in TEST_F()
131 ASSERT_EQ(OK, coords.setAxisValue(axis, axis)); in TEST_F()
133 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); in TEST_F()
137 ASSERT_EQ(NO_MEMORY, coords.setAxisValue(PointerCoords::MAX_AXES, 100)); in TEST_F()
138 ASSERT_EQ(PointerCoords::MAX_AXES, __builtin_popcountll(coords.bits)); in TEST_F()