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

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

Issue 29329510: Issue #1186 - Style conformity for names in installer tests (Closed)
Patch Set: Created Oct. 29, 2015, 7:26 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
@@ -8,49 +8,49 @@
#include "../installer-lib.h"
-TEST(Exception_Test, empty_two)
+TEST(ExceptionTest, EmptyTwo)
{
::SetLastError(0);
WindowsApiError e("", "");
ASSERT_STREQ("<unspecified> returned <unknown> with last error code 0", e.what());
}
-TEST(Exception_Test, empty_three)
+TEST(ExceptionTest, EmptyThree)
{
::SetLastError(1);
WindowsApiError e("", "", "");
ASSERT_STREQ("<unspecified> returned <unknown> with last error code 1", e.what());
}
-TEST(Exception_Test, empty_empty_message)
+TEST(ExceptionTest, EmptyEmptyMessage)
{
::SetLastError(2);
WindowsApiError e("", "", "message");
ASSERT_STREQ("<unspecified> returned <unknown> with last error code 2: message", e.what());
}
-TEST(Exception_Test, string_number)
+TEST(ExceptionTest, StringNumber)
{
::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(ExceptionTest, StringNumberMessage)
{
::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(ExceptionTest, StringString)
{
::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(ExceptionTest, StringStringMessage)
{
::SetLastError(6);
WindowsApiError e("GetErrorMode", "SEM_FAILCRITICALERRORS", "message");

Powered by Google App Engine
This is Rietveld