aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/testing/file.h
diff options
context:
space:
mode:
authorBo Yang <paulyang1211@gmail.com>2015-02-03 21:35:50 -0800
committerBo Yang <paulyang1211@gmail.com>2015-02-03 21:35:50 -0800
commit5914ce7a160a82db1490e99c45c95c69417b20ea (patch)
treefdd9219543de9caf2490a1bcc10ef62ffe27d254 /src/google/protobuf/testing/file.h
parent532c94145b6605361513682601f1d8e9f97a2497 (diff)
downloadprotobuf-5914ce7a160a82db1490e99c45c95c69417b20ea.tar.gz
protobuf-5914ce7a160a82db1490e99c45c95c69417b20ea.tar.bz2
protobuf-5914ce7a160a82db1490e99c45c95c69417b20ea.zip
Implement a feature to generate a dependency file. By giving protoc the flag
"--dependency_manifest_out=FILE", protoc will write dependencies of input proto files into FILE. In FILE, the format will be <full path to FILE>: <full path to 1st proto>\\\n <full path to 2nd proto> ... This cl is based on https://github.com/google/protobuf/pull/178
Diffstat (limited to 'src/google/protobuf/testing/file.h')
-rw-r--r--src/google/protobuf/testing/file.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/google/protobuf/testing/file.h b/src/google/protobuf/testing/file.h
index d2aeabf2..2f63f80e 100644
--- a/src/google/protobuf/testing/file.h
+++ b/src/google/protobuf/testing/file.h
@@ -77,6 +77,9 @@ class File {
static void DeleteRecursively(const string& name,
void* dummy1, void* dummy2);
+ // Change working directory to given directory.
+ static bool ChangeWorkingDirectory(const string& new_working_directory);
+
static bool GetContents(
const string& name, string* output, bool /*is_default*/) {
return ReadFileToString(name, output);