Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: third_party/protobuf/src/google/protobuf/compiler/test_plugin.cc

Issue 1842653006: Update //third_party/protobuf to version 3. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update README.chromium Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Protocol Buffers - Google's data interchange format 1 // Protocol Buffers - Google's data interchange format
2 // Copyright 2008 Google Inc. All rights reserved. 2 // Copyright 2008 Google Inc. All rights reserved.
3 // http://code.google.com/p/protobuf/ 3 // https://developers.google.com/protocol-buffers/
4 // 4 //
5 // Redistribution and use in source and binary forms, with or without 5 // Redistribution and use in source and binary forms, with or without
6 // modification, are permitted provided that the following conditions are 6 // modification, are permitted provided that the following conditions are
7 // met: 7 // met:
8 // 8 //
9 // * Redistributions of source code must retain the above copyright 9 // * Redistributions of source code must retain the above copyright
10 // notice, this list of conditions and the following disclaimer. 10 // notice, this list of conditions and the following disclaimer.
11 // * Redistributions in binary form must reproduce the above 11 // * Redistributions in binary form must reproduce the above
12 // copyright notice, this list of conditions and the following disclaimer 12 // copyright notice, this list of conditions and the following disclaimer
13 // in the documentation and/or other materials provided with the 13 // in the documentation and/or other materials provided with the
(...skipping 28 matching lines...) Expand all
42 int main(int argc, char* argv[]) { 42 int main(int argc, char* argv[]) {
43 #ifdef _MSC_VER 43 #ifdef _MSC_VER
44 // Don't print a silly message or stick a modal dialog box in my face, 44 // Don't print a silly message or stick a modal dialog box in my face,
45 // please. 45 // please.
46 _set_abort_behavior(0, ~0); 46 _set_abort_behavior(0, ~0);
47 #endif // !_MSC_VER 47 #endif // !_MSC_VER
48 48
49 google::protobuf::compiler::MockCodeGenerator generator("test_plugin"); 49 google::protobuf::compiler::MockCodeGenerator generator("test_plugin");
50 return google::protobuf::compiler::PluginMain(argc, argv, &generator); 50 return google::protobuf::compiler::PluginMain(argc, argv, &generator);
51 } 51 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698