diff options
author | Wei-Yin Chen (陳威尹) <wychen@chromium.org> | 2016-08-19 16:40:57 -0700 |
---|---|---|
committer | Wei-Yin Chen (陳威尹) <wychen@chromium.org> | 2016-08-31 17:28:51 -0700 |
commit | 11d6cb56d0df8427dd1a768d39a9717c2c4a7e70 (patch) | |
tree | c254a77232b6c8436a9eccecb56851ec4f66c039 /src/google | |
parent | 588a803d586447582b8398a92c3d93808f80e285 (diff) | |
download | protobuf-11d6cb56d0df8427dd1a768d39a9717c2c4a7e70.tar.gz protobuf-11d6cb56d0df8427dd1a768d39a9717c2c4a7e70.tar.bz2 protobuf-11d6cb56d0df8427dd1a768d39a9717c2c4a7e70.zip |
Add test for Win32ErrorMessage
Diffstat (limited to 'src/google')
-rw-r--r-- | src/google/protobuf/compiler/command_line_interface_unittest.cc | 5 |
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) { |