Index: third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc |
diff --git a/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc b/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc |
index 13ed0b64b40bbd09e86d18040c6390aff41a4c0e..b7c1766bff896df6e2f93d62a1b0fef4e7888b78 100644 |
--- a/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc |
+++ b/third_party/protobuf/src/google/protobuf/compiler/cpp/cpp_bootstrap_unittest.cc |
@@ -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 |
@@ -48,7 +48,7 @@ |
#include <google/protobuf/compiler/importer.h> |
#include <google/protobuf/descriptor.h> |
#include <google/protobuf/io/zero_copy_stream_impl.h> |
-#include <google/protobuf/stubs/map_util.h> |
+#include <google/protobuf/stubs/map-util.h> |
#include <google/protobuf/stubs/stl_util.h> |
#include <google/protobuf/stubs/strutil.h> |
#include <google/protobuf/stubs/substitute.h> |
@@ -93,13 +93,12 @@ class MockGeneratorContext : public GeneratorContext { |
<< "Generator failed to generate file: " << virtual_filename; |
string actual_contents; |
- GOOGLE_CHECK_OK( |
- File::GetContents(TestSourceDir() + "/" + physical_filename, |
- &actual_contents, true)); |
+ File::ReadFileToStringOrDie( |
+ TestSourceDir() + "/" + physical_filename, |
+ &actual_contents); |
EXPECT_TRUE(actual_contents == *expected_contents) |
<< physical_filename << " needs to be regenerated. Please run " |
- "google/protobuf/compiler/release_compiler.sh and " |
- "generate_descriptor_proto.sh. Then add this file " |
+ "generate_descriptor_proto.sh and add this file " |
"to your CL."; |
} |