summaryrefslogtreecommitdiff
path: root/test/ReflectionTest.cpp
blob: d60b52cc24556cbcd82c304d7c9b4c6827e69fb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
#include "gen-cpp/PartiallyReflectable.h"
#include "gen-cpp/Service.h"
#include "../lib/cpp/src/protocol/TDebugProtocol.h"

int main() {
  using std::cout;
  using std::endl;

  facebook::thrift::reflection::limited::Service srv1;
  thrift::test::debug::PartiallyReflectableIf::getStaticLimitedReflection(srv1);
  cout << facebook::thrift::ThriftDebugString(srv1) << endl << endl;

  facebook::thrift::reflection::limited::Service srv2;
  test::stress::ServiceIf::getStaticLimitedReflection(srv2);
  cout << facebook::thrift::ThriftDebugString(srv2) << endl << endl;

  return 0;
}