| 
 | 
 | 
 Chromium Code Reviews
 Chromium Code Reviews Issue 
            2229103003:
    Add another PDFEditTest test case.  (Closed)
    
  
    Issue 
            2229103003:
    Add another PDFEditTest test case.  (Closed) 
  | DescriptionAdd another PDFEditTest test case.
BUG=pdfium:545
Committed: https://pdfium.googlesource.com/pdfium/+/85af2a3cfcdfb2200510d337bfbf5b405858aa3b
   Patch Set 1 #
      Total comments: 5
      
     Patch Set 2 : use bitmap size constant more #Messages
    Total messages: 18 (9 generated)
     
 thestig@chromium.org changed reviewers: + weili@chromium.org 
 
 The CQ bit was checked by thestig@chromium.org to run a CQ dry run 
 Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 rduckles@gmail.com changed reviewers: + rduckles@gmail.com 
 lgtm 
 The CQ bit was unchecked by commit-bot@chromium.org 
 Dry run: This issue passed the CQ dry run. 
 lgtm https://codereview.chromium.org/2229103003/diff/1/fpdfsdk/fpdfeditimg_unittes... File fpdfsdk/fpdfeditimg_unittest.cpp (right): https://codereview.chromium.org/2229103003/diff/1/fpdfsdk/fpdfeditimg_unittes... fpdfsdk/fpdfeditimg_unittest.cpp:62: EXPECT_EQ(kBitmapSize, bitmap_height); Nit: may remove |bitmap_width| and |bitmap_height|. Use kBitmapSize directly in the following calls. 
 https://codereview.chromium.org/2229103003/diff/1/fpdfsdk/fpdfeditimg_unittes... File fpdfsdk/fpdfeditimg_unittest.cpp (right): https://codereview.chromium.org/2229103003/diff/1/fpdfsdk/fpdfeditimg_unittes... fpdfsdk/fpdfeditimg_unittest.cpp:62: EXPECT_EQ(kBitmapSize, bitmap_height); On 2016/08/09 23:39:19, Wei Li wrote: > Nit: may remove |bitmap_width| and |bitmap_height|. Use kBitmapSize directly in > the following calls. I know the focus of this test is not FPDFBitmap_Get{Width,Height} but it does not hurt to exercise them a bit more. 
 https://codereview.chromium.org/2229103003/diff/1/fpdfsdk/fpdfeditimg_unittes... File fpdfsdk/fpdfeditimg_unittest.cpp (right): https://codereview.chromium.org/2229103003/diff/1/fpdfsdk/fpdfeditimg_unittes... fpdfsdk/fpdfeditimg_unittest.cpp:62: EXPECT_EQ(kBitmapSize, bitmap_height); On 2016/08/09 23:39:19, Wei Li wrote: > Nit: may remove |bitmap_width| and |bitmap_height|. Use kBitmapSize directly in > the following calls. Done. 
 The CQ bit was checked by thestig@chromium.org 
 The patchset sent to the CQ was uploaded after l-g-t-m from weili@chromium.org, rduckles@gmail.com Link to the patchset: https://codereview.chromium.org/2229103003/#ps20001 (title: "use bitmap size constant more") 
 CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or... 
 https://codereview.chromium.org/2229103003/diff/1/fpdfsdk/fpdfeditimg_unittes... File fpdfsdk/fpdfeditimg_unittest.cpp (right): https://codereview.chromium.org/2229103003/diff/1/fpdfsdk/fpdfeditimg_unittes... fpdfsdk/fpdfeditimg_unittest.cpp:62: EXPECT_EQ(kBitmapSize, bitmap_height); On 2016/08/09 23:48:34, Lei Zhang wrote: > On 2016/08/09 23:39:19, Wei Li wrote: > > Nit: may remove |bitmap_width| and |bitmap_height|. Use kBitmapSize directly > in > > the following calls. > > I know the focus of this test is not FPDFBitmap_Get{Width,Height} but it does > not hurt to exercise them a bit more. What I meant is you can use: EXPECT_EQ(kBitmapSize, FPDFBitmap_GetWidth(bitmap)); EXPECT_EQ(kBitmapSize, FPDFBitmap_GetHeight(bitmap)); 
 https://codereview.chromium.org/2229103003/diff/1/fpdfsdk/fpdfeditimg_unittes... File fpdfsdk/fpdfeditimg_unittest.cpp (right): https://codereview.chromium.org/2229103003/diff/1/fpdfsdk/fpdfeditimg_unittes... fpdfsdk/fpdfeditimg_unittest.cpp:62: EXPECT_EQ(kBitmapSize, bitmap_height); On 2016/08/09 23:51:16, Wei Li wrote: > On 2016/08/09 23:48:34, Lei Zhang wrote: > > On 2016/08/09 23:39:19, Wei Li wrote: > > > Nit: may remove |bitmap_width| and |bitmap_height|. Use kBitmapSize directly > > in > > > the following calls. > > > > I know the focus of this test is not FPDFBitmap_Get{Width,Height} but it does > > not hurt to exercise them a bit more. > > What I meant is you can use: > EXPECT_EQ(kBitmapSize, FPDFBitmap_GetWidth(bitmap)); > EXPECT_EQ(kBitmapSize, FPDFBitmap_GetHeight(bitmap)); Yep. Patch set 2. 
 
            
              
                Message was sent while issue was closed.
              
            
             Description was changed from ========== Add another PDFEditTest test case. BUG=pdfium:545 ========== to ========== Add another PDFEditTest test case. BUG=pdfium:545 Committed: https://pdfium.googlesource.com/pdfium/+/85af2a3cfcdfb2200510d337bfbf5b405858... ========== 
 
            
              
                Message was sent while issue was closed.
              
            
             Committed patchset #2 (id:20001) as https://pdfium.googlesource.com/pdfium/+/85af2a3cfcdfb2200510d337bfbf5b405858... | 
