mirror of https://github.com/cncf/xds.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
764 B
24 lines
764 B
// NOLINT(namespace-envoy) |
|
#include <cstdlib> |
|
#include <iostream> |
|
|
|
#include "google/protobuf/descriptor.h" |
|
|
|
// Basic C++ build/link validation for the v2 xDS APIs. |
|
int main(int argc, char* argv[]) { |
|
const char* methods[] = { |
|
"xds.service.orca.v3.OpenRcaService.StreamCoreMetrics", |
|
// Old name for backward compatibility. |
|
// TODO(roth): Remove once all callers are updated to use the new name. |
|
"udpa.service.orca.v1.OpenRcaService.StreamCoreMetrics", |
|
}; |
|
|
|
for (const char* method : methods) { |
|
if (google::protobuf::DescriptorPool::generated_pool()->FindMethodByName(method) == nullptr) { |
|
std::cout << "Unable to find method descriptor for " << method << std::endl; |
|
exit(EXIT_FAILURE); |
|
} |
|
} |
|
|
|
exit(EXIT_SUCCESS); |
|
}
|
|
|