gpAux/extensions/gps3ext/test/s3common_writer_test.cpp
// We need not to mock uploadPartOfData() and completeMultiPart() in plain mode,
We need not to mock uploadPartOfData() and completeMultiPart() in plain mode.
We need not to mock uploadPartOfData () and completeMultiPart () in plain mode .
TEST_F(S3CommonWriteTest, UsingPlain) {
    s3ext_autocompress = false;
    EXPECT_CALL(mockS3Interface, getUploadId(_, _, _))
        .WillOnce(Invoke(&mockS3Interface, &MockS3InterfaceForCompressionWrite::mockGetUploadId));
    WriterParams params;
    params.setNumOfChunks(1);
    params.setChunkSize(S3_ZIP_COMPRESS_CHUNKSIZE + 1);
    this->open(params);
    ASSERT_EQ(this->upstreamWriter, &this->keyWriter);
    ASSERT_TRUE(NULL != dynamic_cast<S3KeyWriter*>(this->upstreamWriter));
}
TEST_F ( S3CommonWriteTest , UsingPlain ) { s3ext_autocompress = false ; EXPECT_CALL ( mockS3Interface , getUploadId ( _ , _ , _ ) ) . WillOnce ( Invoke ( & mockS3Interface , & MockS3InterfaceForCompressionWrite :: mockGetUploadId ) ) ; WriterParams params ; params . setNumOfChunks ( 1 ) ; params . setChunkSize ( S3_ZIP_COMPRESS_CHUNKSIZE + 1 ) ; this -> open ( params ) ; ASSERT_EQ ( this -> upstreamWriter , & this -> keyWriter ) ; ASSERT_TRUE ( NULL != dynamic_cast < S3KeyWriter * > ( this -> upstreamWriter ) ) ; }
We need not to mock uploadPartOfData() and completeMultiPart() in plain mode,
We need not to mock uploadPartOfData () and completeMultiPart () in plain mode