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 b7c1766bff896df6e2f93d62a1b0fef4e7888b78..c3e9fe7448661eb209055dc77f0071c1b5bd22e6 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. |
-// http://code.google.com/p/protobuf/ |
+// https://developers.google.com/protocol-buffers/ |
// |
// 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,12 +93,13 @@ class MockGeneratorContext : public GeneratorContext { |
<< "Generator failed to generate file: " << virtual_filename; |
string actual_contents; |
- File::ReadFileToStringOrDie( |
- TestSourceDir() + "/" + physical_filename, |
- &actual_contents); |
+ GOOGLE_CHECK_OK( |
+ File::GetContents(TestSourceDir() + "/" + physical_filename, |
+ &actual_contents, true)); |
EXPECT_TRUE(actual_contents == *expected_contents) |
<< physical_filename << " needs to be regenerated. Please run " |
- "generate_descriptor_proto.sh and add this file " |
+ "google/protobuf/compiler/release_compiler.sh and " |
+ "generate_descriptor_proto.sh. Then add this file " |
"to your CL."; |
} |
@@ -132,8 +133,7 @@ TEST(BootstrapTest, GeneratedDescriptorMatches) { |
CppGenerator generator; |
MockGeneratorContext context; |
string error; |
- string parameter; |
- parameter = "dllexport_decl=LIBPROTOBUF_EXPORT"; |
+ string parameter = "dllexport_decl=LIBPROTOBUF_EXPORT"; |
ASSERT_TRUE(generator.Generate(proto_file, parameter, |
&context, &error)); |
parameter = "dllexport_decl=LIBPROTOC_EXPORT"; |