summaryrefslogtreecommitdiffstats
path: root/src/google/protobuf/compiler/mock_code_generator.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/google/protobuf/compiler/mock_code_generator.h')
-rw-r--r--src/google/protobuf/compiler/mock_code_generator.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/src/google/protobuf/compiler/mock_code_generator.h b/src/google/protobuf/compiler/mock_code_generator.h
index 8c8348d..01d69dd 100644
--- a/src/google/protobuf/compiler/mock_code_generator.h
+++ b/src/google/protobuf/compiler/mock_code_generator.h
@@ -1,6 +1,6 @@
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
-// https://developers.google.com/protocol-buffers/
+// http://code.google.com/p/protobuf/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
@@ -59,10 +59,6 @@ namespace compiler {
// MockCodeGenerator_Exit." to stderr and then calls exit(123).
// MockCodeGenerator_Abort: Generate() prints "Saw message type
// MockCodeGenerator_Abort." to stderr and then calls abort().
-// MockCodeGenerator_HasSourceCodeInfo: Causes Generate() to abort after
-// printing "Saw message type MockCodeGenerator_HasSourceCodeInfo: FOO." to
-// stderr, where FOO is "1" if the supplied FileDescriptorProto has source
-// code info, and "0" otherwise.
class MockCodeGenerator : public CodeGenerator {
public:
MockCodeGenerator(const string& name);
@@ -73,14 +69,11 @@ class MockCodeGenerator : public CodeGenerator {
//
// |insertions| is a comma-separated list of names of MockCodeGenerators which
// should have inserted lines into this file.
- // |parsed_file_list| is a comma-separated list of names of the files
- // that are being compiled together in this run.
static void ExpectGenerated(const string& name,
const string& parameter,
const string& insertions,
const string& file,
const string& first_message_name,
- const string& parsed_file_list,
const string& output_directory);
// Get the name of the file which would be written by the given generator.
@@ -93,7 +86,7 @@ class MockCodeGenerator : public CodeGenerator {
virtual bool Generate(const FileDescriptor* file,
const string& parameter,
- GeneratorContext* context,
+ OutputDirectory* output_directory,
string* error) const;
private:
@@ -101,12 +94,10 @@ class MockCodeGenerator : public CodeGenerator {
static string GetOutputFileContent(const string& generator_name,
const string& parameter,
- const FileDescriptor* file,
- GeneratorContext *context);
+ const FileDescriptor* file);
static string GetOutputFileContent(const string& generator_name,
const string& parameter,
const string& file,
- const string& parsed_file_list,
const string& first_message_name);
};