Skip to content

Commit 838d2da

Browse files
committed
changed namespace name
1 parent 41cb9aa commit 838d2da

File tree

6 files changed

+9
-7
lines changed

6 files changed

+9
-7
lines changed

test.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ thrift_serialization_test(size_t iterations)
2323
{
2424
using apache::thrift::transport::TMemoryBuffer;
2525
using apache::thrift::protocol::TBinaryProtocol;
26+
27+
using namespace thrift_test;
2628

2729
boost::shared_ptr<TMemoryBuffer> buffer(new TMemoryBuffer());
2830
boost::shared_ptr<TBinaryProtocol> protocol(new TBinaryProtocol(buffer));
2931

30-
test::Record a;
32+
Record a;
3133

3234
for (size_t i = 0; i < kItegersCount; i++) {
3335
a.ids.push_back(kIntegerValue);
@@ -47,7 +49,7 @@ thrift_serialization_test(size_t iterations)
4749
boost::shared_ptr<TBinaryProtocol> protocol2(new TBinaryProtocol(buffer2));
4850

4951
buffer2->resetBuffer((uint8_t*)serialized.data(), serialized.length());
50-
test::Record a2;
52+
Record a2;
5153
a2.read(protocol2.get());
5254

5355
if (a != a2) {

test.thrift

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace cpp test
1+
namespace cpp thrift_test
22

33
struct Record {
44
1: required list<i64> ids,

thrift/gen-cpp/test_constants.cpp

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/gen-cpp/test_constants.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/gen-cpp/test_types.cpp

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

thrift/gen-cpp/test_types.h

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)