| 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 |
| @@ -8,51 +8,51 @@ |
| #include "../installer-lib.h" |
| -TEST( Exception_Test, empty_two ) |
| +TEST(Exception_Test, empty_two) |
| { |
| - ::SetLastError( 0 ) ; |
| - WindowsApiError e( "", "" ) ; |
| - ASSERT_STREQ( "<unspecified> returned <unknown> with last error code 0", e.what() ) ; |
| + ::SetLastError(0); |
| + WindowsApiError e("", ""); |
| + ASSERT_STREQ("<unspecified> returned <unknown> with last error code 0", e.what()); |
| } |
| -TEST( Exception_Test, empty_three ) |
| +TEST(Exception_Test, empty_three) |
| { |
| - ::SetLastError( 1 ) ; |
| - WindowsApiError e( "", "", "" ) ; |
| - ASSERT_STREQ( "<unspecified> returned <unknown> with last error code 1", e.what() ) ; |
| + ::SetLastError(1); |
| + WindowsApiError e("", "", ""); |
| + ASSERT_STREQ("<unspecified> returned <unknown> with last error code 1", e.what()); |
| } |
| -TEST( Exception_Test, empty_empty_message ) |
| +TEST(Exception_Test, empty_empty_message) |
| { |
| - ::SetLastError( 2 ) ; |
| - WindowsApiError e( "", "", "message" ) ; |
| - ASSERT_STREQ( "<unspecified> returned <unknown> with last error code 2: message", e.what() ) ; |
| + ::SetLastError(2); |
| + WindowsApiError e("", "", "message"); |
| + ASSERT_STREQ("<unspecified> returned <unknown> with last error code 2: message", e.what()); |
| } |
| -TEST( Exception_Test, string_number ) |
| +TEST(Exception_Test, string_number) |
| { |
| - ::SetLastError( 3 ) ; |
| - WindowsApiError e( "Beep", 1 ) ; |
| - ASSERT_STREQ( "Beep returned 1 with last error code 3", e.what() ) ; |
| + ::SetLastError(3); |
| + WindowsApiError e("Beep", 1); |
| + ASSERT_STREQ("Beep returned 1 with last error code 3", e.what()); |
| } |
| -TEST( Exception_Test, string_number_message ) |
| +TEST(Exception_Test, string_number_message) |
| { |
| - ::SetLastError( 4 ) ; |
| - WindowsApiError e( "Beep", 1, "message" ) ; |
| - ASSERT_STREQ( "Beep returned 1 with last error code 4: message", e.what() ) ; |
| + ::SetLastError(4); |
| + WindowsApiError e("Beep", 1, "message"); |
| + ASSERT_STREQ("Beep returned 1 with last error code 4: message", e.what()); |
| } |
| -TEST( Exception_Test, string_string ) |
| +TEST(Exception_Test, string_string) |
| { |
| - ::SetLastError( 5 ) ; |
| - WindowsApiError e( "GetErrorMode", "SEM_FAILCRITICALERRORS" ) ; |
| - ASSERT_STREQ( "GetErrorMode returned SEM_FAILCRITICALERRORS with last error code 5", e.what() ) ; |
| + ::SetLastError(5); |
| + WindowsApiError e("GetErrorMode", "SEM_FAILCRITICALERRORS"); |
| + ASSERT_STREQ("GetErrorMode returned SEM_FAILCRITICALERRORS with last error code 5", e.what()); |
| } |
| -TEST( Exception_Test, string_string_message ) |
| +TEST(Exception_Test, string_string_message) |
| { |
| - ::SetLastError( 6 ) ; |
| - WindowsApiError e( "GetErrorMode", "SEM_FAILCRITICALERRORS", "message" ) ; |
| - ASSERT_STREQ( "GetErrorMode returned SEM_FAILCRITICALERRORS with last error code 6: message", e.what() ) ; |
| + ::SetLastError(6); |
| + WindowsApiError e("GetErrorMode", "SEM_FAILCRITICALERRORS", "message"); |
| + ASSERT_STREQ("GetErrorMode returned SEM_FAILCRITICALERRORS with last error code 6: message", e.what()); |
| } |