Down integrate to GitHub
diff --git a/conformance/conformance_test.h b/conformance/conformance_test.h
index 2f42d83..6a993de 100644
--- a/conformance/conformance_test.h
+++ b/conformance/conformance_test.h
@@ -38,14 +38,15 @@
#ifndef CONFORMANCE_CONFORMANCE_TEST_H
#define CONFORMANCE_CONFORMANCE_TEST_H
-#include <functional>
-#include <string>
-
#include <google/protobuf/descriptor.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/util/type_resolver.h>
#include <google/protobuf/wire_format_lite.h>
+#include <functional>
+#include <string>
+#include <vector>
+
#include "conformance.pb.h"
namespace conformance {
@@ -88,7 +89,13 @@
static int Run(int argc, char *argv[],
const std::vector<ConformanceTestSuite*>& suites);
- ForkPipeRunner(const std::string &executable)
+ ForkPipeRunner(const std::string& executable,
+ const std::vector<string>& executable_args)
+ : child_pid_(-1),
+ executable_(executable),
+ executable_args_(executable_args) {}
+
+ explicit ForkPipeRunner(const std::string& executable)
: child_pid_(-1), executable_(executable) {}
virtual ~ForkPipeRunner() {}
@@ -108,6 +115,7 @@
int read_fd_;
pid_t child_pid_;
std::string executable_;
+ const std::vector<string> executable_args_;
std::string current_test_name_;
};
@@ -257,12 +265,10 @@
const ConformanceRequestSetting& setting,
Message* test_message) = 0;
- void VerifyResponse(
- const ConformanceRequestSetting& setting,
- const string& equivalent_wire_format,
- const conformance::ConformanceResponse& response,
- bool need_report_success,
- bool require_same_wire_format);
+ void VerifyResponse(const ConformanceRequestSetting& setting,
+ const string& equivalent_wire_format,
+ const conformance::ConformanceResponse& response,
+ bool need_report_success, bool require_same_wire_format);
void ReportSuccess(const std::string& test_name);
void ReportFailure(const string& test_name,