◆ operator==()
39 {
return a.lock() ==
b.lock(); }
◆ points_are_close()
◆ rects_are_close()
◆ TEST()
| TEST |
( |
TransformPresentation_Tests |
, |
|
|
TransformationData_supports_aspect_ratio |
|
|
) |
| |
44 td->setAspectRatio(2, 3);
52 EXPECT_CALL(*cpm, getRect()).WillRepeatedly(Return(
make_rect(1.0, 2.0, 3.0, 4.0)));
56 EXPECT_CALL(*cpm,
open(_)).InSequence(seq).WillOnce(SaveArg<0>(&viw));
58 const int zoom_to_use = 3;
61 EXPECT_CALL(*cpm, redraw(Eq(ByRef(viw)), _, _, _)).WillOnce(DoAll(SaveArg<2>(&requested_to_be_drawn), SaveArg<3>(&used_zoom)));
62 EXPECT_CALL(*cpm, close(Eq(ByRef(viw))));
70 cairo_surface_t* surface = s->get();
71 cairo_t* cr = cairo_create(surface);
73 tp->redraw(vi, cr, to_be_drawn, zoom_to_use);
76 EXPECT_EQ(zoom_to_use, used_zoom);
xy_type getTopLeft() const
Definition: rectangle.hh:133
boost::shared_ptr< uint8_t > Ptr
Definition: blockallocator.hh:23
boost::shared_ptr< ViewInterface > Ptr
Definition: viewinterface.hh:193
Rectangle< T > make_rect(T x, T y, T width, T height)
Definition: rectangle.hh:284
Definition: dont-delete.hh:25
static Ptr create()
Definition: presentationinterface.hh:39
xy_type getBottomRight() const
Definition: rectangle.hh:139
boost::weak_ptr< ViewInterface > WeakPtr
Definition: viewinterface.hh:194
boost::shared_ptr< ColormappablePresentationMock > Ptr
Definition: presentationinterface.hh:37
static void b(const B::Ptr &)
Definition: gtkhelper-tests.cc:32
boost::optional< std::tuple< Scroom::TiledBitmap::BitmapMetaData, TIFFPtr > > open(const std::string &fileName)
Definition: tiffsource.cc:119
Definition: viewinterface.hh:190
void create(NewPresentationInterface *interface)
Definition: loader.cc:175