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

Unified Diff: third_party/protobuf/src/google/protobuf/testing/file.h

Issue 1322483002: Revert https://codereview.chromium.org/1291903002 (protobuf roll). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/protobuf/src/google/protobuf/testing/file.h
diff --git a/third_party/protobuf/src/google/protobuf/testing/file.h b/third_party/protobuf/src/google/protobuf/testing/file.h
index 2f63f80e7b2946134184641a1643518d91221103..a6b1c7641f2f6a2ec582804b8b152043b149b57f 100644
--- a/third_party/protobuf/src/google/protobuf/testing/file.h
+++ b/third_party/protobuf/src/google/protobuf/testing/file.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
@@ -56,10 +56,6 @@ class File {
static void ReadFileToStringOrDie(const string& name, string* output);
// Create a file and write a string to it.
- static bool WriteStringToFile(const string& contents,
- const string& name);
-
- // Same as above, but crash on failure.
static void WriteStringToFileOrDie(const string& contents,
const string& name);
@@ -77,19 +73,6 @@ 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);
- }
-
- static bool SetContents(
- const string& name, const string& contents, bool /*is_default*/) {
- return WriteStringToFile(contents, name);
- }
-
private:
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(File);
};

Powered by Google App Engine
This is Rietveld 408576698