Lines Matching refs:source
67 ProjectionSpace source; in TEST() local
68 source.content = Rect(10, 10, 20, 20); in TEST()
69 source.bounds = Rect(100, 200); in TEST()
73 dest.bounds = source.bounds; in TEST()
75 const auto transform = source.getTransform(dest); in TEST()
76 EXPECT_EQ(transform.transform(source.content), dest.content); in TEST()
80 ProjectionSpace source; in TEST() local
81 source.content = Rect(0, 0, 20, 20); in TEST()
82 source.bounds = Rect(100, 200); in TEST()
86 dest.bounds = source.bounds; in TEST()
88 const auto transform = source.getTransform(dest); in TEST()
89 EXPECT_EQ(transform.transform(source.content), dest.content); in TEST()
100 void testTransform(const ProjectionSpace& source, const ProjectionSpace& dest) { in testTransform() argument
101 const auto transform = source.getTransform(dest); in testTransform()
102 EXPECT_EQ(transform.transform(source.content), dest.content) in testTransform()
103 << "Source content doesn't map to dest content when projecting " << to_string(source) in testTransform()
116 const auto sourceStrip = getSideStrip(source.content, source.orientation); in testTransform()
123 << to_string(destStrip) << " when projecting " << to_string(source) << " onto " in testTransform()
128 ProjectionSpace source; in TEST() local
129 source.bounds = Rect(12, 13, 678, 789); in TEST()
130 source.content = Rect(40, 50, 234, 343); in TEST()
136 source.orientation = ui::Rotation(sourceRot); in TEST()
139 testTransform(source, dest); in TEST()