aboutsummaryrefslogtreecommitdiff
path: root/src/google/protobuf/compiler/command_line_interface_unittest.cc
diff options
context:
space:
mode:
authorWei-Yin Chen (陳威尹) <wychen@chromium.org>2016-08-19 16:40:57 -0700
committerWei-Yin Chen (陳威尹) <wychen@chromium.org>2016-08-31 17:28:51 -0700
commit11d6cb56d0df8427dd1a768d39a9717c2c4a7e70 (patch)
treec254a77232b6c8436a9eccecb56851ec4f66c039 /src/google/protobuf/compiler/command_line_interface_unittest.cc
parent588a803d586447582b8398a92c3d93808f80e285 (diff)
downloadprotobuf-11d6cb56d0df8427dd1a768d39a9717c2c4a7e70.tar.gz
protobuf-11d6cb56d0df8427dd1a768d39a9717c2c4a7e70.tar.bz2
protobuf-11d6cb56d0df8427dd1a768d39a9717c2c4a7e70.zip
Add test for Win32ErrorMessage
Diffstat (limited to 'src/google/protobuf/compiler/command_line_interface_unittest.cc')
-rw-r--r--src/google/protobuf/compiler/command_line_interface_unittest.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/google/protobuf/compiler/command_line_interface_unittest.cc b/src/google/protobuf/compiler/command_line_interface_unittest.cc
index 0ebf9b6a..dee438c6 100644
--- a/src/google/protobuf/compiler/command_line_interface_unittest.cc
+++ b/src/google/protobuf/compiler/command_line_interface_unittest.cc
@@ -719,6 +719,11 @@ TEST_F(CommandLineInterfaceTest, TrailingBackslash) {
ExpectGenerated("test_generator", "", "foo.proto", "Foo");
}
+TEST_F(CommandLineInterfaceTest, Win32ErrorMessage) {
+ EXPECT_EQ("The system cannot find the file specified.\r\n",
+ Subprocess::Win32ErrorMessage(ERROR_FILE_NOT_FOUND));
+}
+
#endif // defined(_WIN32) || defined(__CYGWIN__)
TEST_F(CommandLineInterfaceTest, PathLookup) {