Add test for Win32ErrorMessage

pull/2044/head
Wei-Yin Chen (陳威尹) 9 years ago
parent 588a803d58
commit 11d6cb56d0
  1. 5
      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) {

Loading…
Cancel
Save