~ubuntu-branches/debian/wheezy/protobuf/wheezy

« back to all changes in this revision

Viewing changes to src/google/protobuf/compiler/mock_code_generator.h

  • Committer: Bazaar Package Importer
  • Author(s): Iustin Pop
  • Date: 2011-04-16 20:18:28 UTC
  • mfrom: (10.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20110416201828-8nt7f1jzaxityogm
Tags: 2.4.0a-2
Re-upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
69
69
  //
70
70
  // |insertions| is a comma-separated list of names of MockCodeGenerators which
71
71
  // should have inserted lines into this file.
 
72
  // |parsed_file_list| is a comma-separated list of names of the files
 
73
  // that are being compiled together in this run.
72
74
  static void ExpectGenerated(const string& name,
73
75
                              const string& parameter,
74
76
                              const string& insertions,
75
77
                              const string& file,
76
78
                              const string& first_message_name,
 
79
                              const string& parsed_file_list,
77
80
                              const string& output_directory);
78
81
 
79
82
  // Get the name of the file which would be written by the given generator.
86
89
 
87
90
  virtual bool Generate(const FileDescriptor* file,
88
91
                        const string& parameter,
89
 
                        OutputDirectory* output_directory,
 
92
                        GeneratorContext* context,
90
93
                        string* error) const;
91
94
 
92
95
 private:
94
97
 
95
98
  static string GetOutputFileContent(const string& generator_name,
96
99
                                     const string& parameter,
97
 
                                     const FileDescriptor* file);
 
100
                                     const FileDescriptor* file,
 
101
                                     GeneratorContext *context);
98
102
  static string GetOutputFileContent(const string& generator_name,
99
103
                                     const string& parameter,
100
104
                                     const string& file,
 
105
                                     const string& parsed_file_list,
101
106
                                     const string& first_message_name);
102
107
};
103
108