Index: third_party/protobuf/src/google/protobuf/stubs/common_unittest.cc |
diff --git a/third_party/protobuf/src/google/protobuf/stubs/common_unittest.cc b/third_party/protobuf/src/google/protobuf/stubs/common_unittest.cc |
index f9e2cfd4370adbc0b29f162ec11ee147caf5f1d4..43cd6d010be703613cd5ffd209dfb06b7000e31b 100644 |
--- a/third_party/protobuf/src/google/protobuf/stubs/common_unittest.cc |
+++ b/third_party/protobuf/src/google/protobuf/stubs/common_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 |
@@ -31,7 +31,6 @@ |
// Author: kenton@google.com (Kenton Varda) |
#include <vector> |
-#include <google/protobuf/stubs/casts.h> |
#include <google/protobuf/stubs/common.h> |
#include <google/protobuf/stubs/strutil.h> |
#include <google/protobuf/stubs/substitute.h> |
@@ -39,6 +38,8 @@ |
#include <google/protobuf/testing/googletest.h> |
#include <gtest/gtest.h> |
+#include "config.h" |
+ |
namespace google { |
namespace protobuf { |
namespace { |
@@ -93,9 +94,9 @@ TEST(LoggingTest, DefaultLogging) { |
string text = GetCapturedTestStderr(); |
EXPECT_EQ( |
- "[libprotobuf INFO " __FILE__ ":" + SimpleItoa(line + 1) + "] A message.\n" |
- "[libprotobuf WARNING " __FILE__ ":" + SimpleItoa(line + 2) + "] A warning.\n" |
- "[libprotobuf ERROR " __FILE__ ":" + SimpleItoa(line + 3) + "] An error.\n", |
+ "[libprotobuf INFO "__FILE__":" + SimpleItoa(line + 1) + "] A message.\n" |
+ "[libprotobuf WARNING "__FILE__":" + SimpleItoa(line + 2) + "] A warning.\n" |
+ "[libprotobuf ERROR "__FILE__":" + SimpleItoa(line + 3) + "] An error.\n", |
text); |
} |
@@ -126,10 +127,10 @@ TEST(LoggingTest, CaptureLogging) { |
ASSERT_EQ(2, captured_messages_.size()); |
EXPECT_EQ( |
- "2 " __FILE__ ":" + SimpleItoa(start_line + 1) + ": An error.", |
+ "2 "__FILE__":" + SimpleItoa(start_line + 1) + ": An error.", |
captured_messages_[0]); |
EXPECT_EQ( |
- "1 " __FILE__ ":" + SimpleItoa(start_line + 2) + ": A warning.", |
+ "1 "__FILE__":" + SimpleItoa(start_line + 2) + ": A warning.", |
captured_messages_[1]); |
} |
@@ -152,10 +153,10 @@ TEST(LoggingTest, SilenceLogging) { |
ASSERT_EQ(2, captured_messages_.size()); |
EXPECT_EQ( |
- "0 " __FILE__ ":" + SimpleItoa(line1) + ": Visible1", |
+ "0 "__FILE__":" + SimpleItoa(line1) + ": Visible1", |
captured_messages_[0]); |
EXPECT_EQ( |
- "0 " __FILE__ ":" + SimpleItoa(line2) + ": Visible2", |
+ "0 "__FILE__":" + SimpleItoa(line2) + ": Visible2", |
captured_messages_[1]); |
} |