Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: installer/src/installer-lib/test/exception_test.cpp

Issue 5992177905696768: Issue #1186 - Rename symbols defined in 'installer-lib' (Closed)
Patch Set: fixed issues; rebased; new fixes from rebase Created June 19, 2015, 4:09 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: installer/src/installer-lib/test/exception_test.cpp
===================================================================
--- a/installer/src/installer-lib/test/exception_test.cpp
+++ b/installer/src/installer-lib/test/exception_test.cpp
@@ -11,48 +11,48 @@
TEST( Exception_Test, empty_two )
{
::SetLastError( 0 ) ;
- windows_api_error e( "", "" ) ;
+ WindowsApiError e( "", "" ) ;
ASSERT_STREQ( "<unspecified> returned <unknown> with last error code 0", e.what() ) ;
}
TEST( Exception_Test, empty_three )
{
::SetLastError( 1 ) ;
- windows_api_error e( "", "", "" ) ;
+ WindowsApiError e( "", "", "" ) ;
ASSERT_STREQ( "<unspecified> returned <unknown> with last error code 1", e.what() ) ;
}
TEST( Exception_Test, empty_empty_message )
{
::SetLastError( 2 ) ;
- windows_api_error e( "", "", "message" ) ;
+ WindowsApiError e( "", "", "message" ) ;
ASSERT_STREQ( "<unspecified> returned <unknown> with last error code 2: message", e.what() ) ;
}
TEST( Exception_Test, string_number )
{
::SetLastError( 3 ) ;
- windows_api_error e( "Beep", 1 ) ;
+ WindowsApiError e( "Beep", 1 ) ;
ASSERT_STREQ( "Beep returned 1 with last error code 3", e.what() ) ;
}
TEST( Exception_Test, string_number_message )
{
::SetLastError( 4 ) ;
- windows_api_error e( "Beep", 1, "message" ) ;
+ WindowsApiError e( "Beep", 1, "message" ) ;
ASSERT_STREQ( "Beep returned 1 with last error code 4: message", e.what() ) ;
}
TEST( Exception_Test, string_string )
{
::SetLastError( 5 ) ;
- windows_api_error e( "GetErrorMode", "SEM_FAILCRITICALERRORS" ) ;
+ WindowsApiError e( "GetErrorMode", "SEM_FAILCRITICALERRORS" ) ;
ASSERT_STREQ( "GetErrorMode returned SEM_FAILCRITICALERRORS with last error code 5", e.what() ) ;
}
TEST( Exception_Test, string_string_message )
{
::SetLastError( 6 ) ;
- windows_api_error e( "GetErrorMode", "SEM_FAILCRITICALERRORS", "message" ) ;
+ WindowsApiError e( "GetErrorMode", "SEM_FAILCRITICALERRORS", "message" ) ;
ASSERT_STREQ( "GetErrorMode returned SEM_FAILCRITICALERRORS with last error code 6: message", e.what() ) ;
}
« no previous file with comments | « installer/src/installer-lib/test/database_test.cpp ('k') | installer/src/installer-lib/test/process_test.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld