Skip to content

Commit

Permalink
rgw: modify testcase in src/test/rgw
Browse files Browse the repository at this point in the history
Signed-off-by: lvshanchun <lvshanchun@gmail.com>
  • Loading branch information
Leeshine committed Nov 17, 2017
1 parent 1e25d7c commit db775ee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/test/rgw/test_rgw_compression.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "rgw/rgw_compression.h"

class ut_get_sink : public RGWGetDataCB {
class ut_get_sink : public RGWGetObj_Filter {
bufferlist sink;
public:
ut_get_sink() {}
Expand All @@ -30,7 +30,7 @@ class ut_get_sink : public RGWGetDataCB {
}
};

class ut_get_sink_size : public RGWGetDataCB {
class ut_get_sink_size : public RGWGetObj_Filter {
size_t max_size = 0;
public:
ut_get_sink_size() {}
Expand Down Expand Up @@ -71,7 +71,7 @@ class ut_put_sink: public RGWPutObjDataProcessor
};


struct MockGetDataCB : public RGWGetDataCB {
struct MockGetDataCB : public RGWGetObj_Filter {
int handle_data(bufferlist& bl, off_t bl_ofs, off_t bl_len) override {
return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/test/rgw/test_rgw_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ using namespace std;
std::unique_ptr<BlockCrypt> AES_256_CBC_create(CephContext* cct, const uint8_t* key, size_t len);


class ut_get_sink : public RGWGetDataCB {
class ut_get_sink : public RGWGetObj_Filter {
std::stringstream sink;
public:
ut_get_sink() {}
Expand Down

0 comments on commit db775ee

Please sign in to comment.