1ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// Protocol Buffers - Google's data interchange format
2ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// Copyright 2008 Google Inc.  All rights reserved.
3afb4b72037e3f13db208590fc782c4bc8e27f862Jeff Davidson// https://developers.google.com/protocol-buffers/
4ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville//
5ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// Redistribution and use in source and binary forms, with or without
6ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// modification, are permitted provided that the following conditions are
7ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// met:
8ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville//
9ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville//     * Redistributions of source code must retain the above copyright
10ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// notice, this list of conditions and the following disclaimer.
11ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville//     * Redistributions in binary form must reproduce the above
12ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// copyright notice, this list of conditions and the following disclaimer
13ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// in the documentation and/or other materials provided with the
14ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// distribution.
15ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville//     * Neither the name of Google Inc. nor the names of its
16ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// contributors may be used to endorse or promote products derived from
17ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// this software without specific prior written permission.
18ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville//
19ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville
31ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville// Author: kenton@google.com (Kenton Varda)
32ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville//
33d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville// This is a dummy code generator plugin used by
34d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville// command_line_interface_unittest.
35ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville
36d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville#include <string>
37d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville#include <stdlib.h>
38d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville#include <google/protobuf/compiler/plugin.h>
39d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville#include <google/protobuf/compiler/mock_code_generator.h>
40d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville#include <google/protobuf/stubs/strutil.h>
41ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville
42d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Savilleint main(int argc, char* argv[]) {
43d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville#ifdef _MSC_VER
44d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  // Don't print a silly message or stick a modal dialog box in my face,
45d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  // please.
46d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  _set_abort_behavior(0, ~0);
47d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville#endif  // !_MSC_VER
48ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville
49d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  google::protobuf::compiler::MockCodeGenerator generator("test_plugin");
50d0332953cda33fb4f8e24ebff9c49159b69c43d6Wink Saville  return google::protobuf::compiler::PluginMain(argc, argv, &generator);
51ede38fe9b9f93888e6e41afc7abb09525f44da95Wink Saville}
52