Lines Matching refs:source
67 ProjectionSpace source; in TEST() local
68 source.setContent(Rect(10, 10, 20, 20)); in TEST()
69 source.setBounds(ui::Size(100, 200)); in TEST()
73 dest.setBounds(source.getBounds()); in TEST()
75 const auto transform = source.getTransform(dest); in TEST()
76 EXPECT_EQ(transform.transform(source.getContent()), dest.getContent()); in TEST()
80 ProjectionSpace source; in TEST() local
81 source.setContent(Rect(0, 0, 20, 20)); in TEST()
82 source.setBounds(ui::Size(100, 200)); in TEST()
86 dest.setBounds(source.getBounds()); in TEST()
88 const auto transform = source.getTransform(dest); in TEST()
89 EXPECT_EQ(transform.transform(source.getContent()), dest.getContent()); 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.getContent()), dest.getContent()) in testTransform()
103 << "Source content doesn't map to dest content when projecting " << to_string(source) in testTransform()
116 const auto sourceStrip = getSideStrip(source.getContent(), source.getOrientation()); in testTransform()
123 << to_string(destStrip) << " when projecting " << to_string(source) << " onto " in testTransform()
128 ProjectionSpace source; in TEST() local
129 source.setBounds(ui::Size(666, 776)); in TEST()
130 source.setContent(Rect(40, 50, 234, 343)); in TEST()
136 source.setOrientation(ui::Rotation(sourceRot)); in TEST()
139 testTransform(source, dest); in TEST()