Lines Matching refs:emf
57 Emf emf; in TEST() local
58 EXPECT_TRUE(emf.Init()); in TEST()
59 EXPECT_TRUE(emf.context() != NULL); in TEST()
61 ::Rectangle(emf.context(), 10, 10, 190, 190); in TEST()
62 EXPECT_TRUE(emf.FinishDocument()); in TEST()
63 size = emf.GetDataSize(); in TEST()
65 EXPECT_TRUE(emf.GetDataAsVector(&data)); in TEST()
70 Emf emf; in TEST() local
71 EXPECT_TRUE(emf.InitFromData(&data.front(), size)); in TEST()
75 EXPECT_TRUE(emf.Playback(hdc, &output_rect)); in TEST()
100 Emf emf; in TEST_F() local
104 EXPECT_TRUE(emf.InitFromData(&emf_data[0], emf_data.size())); in TEST_F()
113 RECT page_bounds = emf.GetPageBounds(1).ToRECT(); in TEST_F()
114 Emf::Enumerator emf_enum(emf, context->context(), &page_bounds); in TEST_F()
139 Emf emf; in TEST_F() local
140 EXPECT_TRUE(emf.Init()); in TEST_F()
141 EXPECT_TRUE(emf.context() != NULL); in TEST_F()
144 EXPECT_TRUE(emf.StartPage(gfx::Size(), gfx::Rect(), 1)); in TEST_F()
145 ::Rectangle(emf.context(), 10, 10, 190, 190); in TEST_F()
146 EXPECT_TRUE(emf.FinishPage()); in TEST_F()
149 EXPECT_EQ(3U, emf.GetPageCount()); in TEST_F()
150 EXPECT_TRUE(emf.FinishDocument()); in TEST_F()
151 size = emf.GetDataSize(); in TEST_F()
152 EXPECT_TRUE(emf.GetDataAsVector(&data)); in TEST_F()
161 Emf emf; in TEST_F() local
162 EXPECT_TRUE(emf.InitFromData(&data.front(), size)); in TEST_F()
163 EXPECT_TRUE(emf.SafePlayback(dc.Get())); in TEST_F()
184 Emf emf; in TEST() local
185 EXPECT_TRUE(emf.InitToFile(metafile_path)); in TEST()
186 EXPECT_TRUE(emf.context() != NULL); in TEST()
188 ::Rectangle(emf.context(), 10, 10, 190, 190); in TEST()
189 EXPECT_TRUE(emf.FinishDocument()); in TEST()
190 size = emf.GetDataSize(); in TEST()
192 EXPECT_TRUE(emf.GetDataAsVector(&data)); in TEST()
202 Emf emf; in TEST() local
203 EXPECT_TRUE(emf.InitFromFile(metafile_path)); in TEST()
205 EXPECT_TRUE(emf.Playback(hdc, &output_rect)); in TEST()
210 Emf emf; in TEST() local
211 EXPECT_TRUE(emf.Init()); in TEST()
212 EXPECT_TRUE(emf.context() != NULL); in TEST()
216 FillRect(emf.context(), &rect, brush); in TEST()
218 EXPECT_TRUE(emf.FinishDocument()); in TEST()
220 scoped_ptr<Emf> raster(emf.RasterizeMetafile(1)); in TEST()
222 EXPECT_EQ(emf.GetPageBounds(1), raster->GetPageBounds(1)); in TEST()
224 raster = emf.RasterizeMetafile(20); in TEST()
225 EXPECT_EQ(emf.GetPageBounds(1), raster->GetPageBounds(1)); in TEST()
227 raster = emf.RasterizeMetafile(16 * 1024 * 1024); in TEST()
231 EXPECT_EQ(emf.GetPageBounds(1), raster->GetPageBounds(1)); in TEST()