diff options
author | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-19 01:04:57 +0000 |
---|---|---|
committer | dpapad@chromium.org <dpapad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-19 01:04:57 +0000 |
commit | cdd19f53d9ffe332e0324a69bffb3c4e9369e980 (patch) | |
tree | 5cddec581bbbd376d683ac717516029a96a6b85e /printing/emf_win_unittest.cc | |
parent | f9722575da516bc5b88e5cbfb57b7c2782260429 (diff) | |
download | chromium_src-cdd19f53d9ffe332e0324a69bffb3c4e9369e980.zip chromium_src-cdd19f53d9ffe332e0324a69bffb3c4e9369e980.tar.gz chromium_src-cdd19f53d9ffe332e0324a69bffb3c4e9369e980.tar.bz2 |
Renaming NativeMetafile related methods to more appropriate names.
1) Renaming Close() to FinishDocument()
2) Renaming NativeMetafileFactory::CreateMetafile() to Create(), since the name of the class already implies what is being created
BUG=NONE
TEST=NONE
Review URL: http://codereview.chromium.org/6674037
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/emf_win_unittest.cc')
-rw-r--r-- | printing/emf_win_unittest.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/printing/emf_win_unittest.cc b/printing/emf_win_unittest.cc index a5bd583..9f2899b 100644 --- a/printing/emf_win_unittest.cc +++ b/printing/emf_win_unittest.cc @@ -52,7 +52,7 @@ TEST(EmfTest, DC) { EXPECT_TRUE(emf.CreateDc(hdc, &rect)); EXPECT_TRUE(emf.context() != NULL); // In theory, you'd use the HDC with GDI functions here. - EXPECT_TRUE(emf.Close()); + EXPECT_TRUE(emf.FinishDocument()); uint32 size = emf.GetDataSize(); EXPECT_EQ(size, EMF_HEADER_SIZE); std::vector<BYTE> data; @@ -138,7 +138,7 @@ TEST_F(EmfPrintingTest, PageBreak) { EXPECT_TRUE(emf.FinishPage()); --pages; } - EXPECT_TRUE(emf.Close()); + EXPECT_TRUE(emf.FinishDocument()); uint32 size = emf.GetDataSize(); std::vector<BYTE> data; EXPECT_TRUE(emf.GetData(&data)); @@ -176,7 +176,7 @@ TEST(EmfTest, FileBackedDC) { EXPECT_TRUE(emf.CreateFileBackedDc(hdc, &rect, metafile_path)); EXPECT_TRUE(emf.context() != NULL); // In theory, you'd use the HDC with GDI functions here. - EXPECT_TRUE(emf.Close()); + EXPECT_TRUE(emf.FinishDocument()); uint32 size = emf.GetDataSize(); EXPECT_EQ(size, EMF_HEADER_SIZE); |