File: baz_cc_test.cc

package info (click to toggle)
golang-github-envoyproxy-protoc-gen-validate 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,720 kB
  • sloc: java: 1,768; python: 1,203; xml: 893; cpp: 414; makefile: 154; sh: 9
file content (18 lines) | stat: -rw-r--r-- 418 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <fcntl.h>
#include <unistd.h>

#include <cstdlib>
#include <ostream>

#include "foo/subdir_without_package/baz.pb.h"
#include "foo/subdir_without_package/baz.pb.validate.h"
#include "google/protobuf/io/zero_copy_stream_impl.h"
#include "google/protobuf/text_format.h"

int main(int nargs, char** args) {
  pgv::example::foo::Baz baz;
  pgv::ValidationMsg msg;
  Validate(baz, &msg);

  return EXIT_SUCCESS;
}