Skip to content

Commit

Permalink
Merge pull request #22 from unknownv2/dev-tests
Browse files Browse the repository at this point in the history
style: Rename tests to match Google suggested style
  • Loading branch information
unknownv2 authored Oct 21, 2018
2 parents 41feda0 + bc25365 commit bd6c677
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
3 changes: 1 addition & 2 deletions msvc/corehook-test/DetoursTest.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#pragma once
#include "detours.h"
#include <memory>
#include "corehook.h"

class Detours {

Expand Down
2 changes: 1 addition & 1 deletion msvc/corehook-test/corehook-test.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<IncludePath>../../src;$(IncludePath)</IncludePath>
</PropertyGroup>
<ItemGroup>
<ClInclude Include="hook.h" />
<ClInclude Include="corehook.h" />
<ClInclude Include="pch.h" />
<ClInclude Include="DetoursTest.h" />
</ItemGroup>
Expand Down
3 changes: 2 additions & 1 deletion msvc/corehook-test/hook.h → msvc/corehook-test/corehook.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

#ifndef COREHOOK_TEST_H_
#define COREHOOK_TEST_H_

#include "detours.h"
#include <memory>

#endif // COREHOOK_TEST_H_

6 changes: 3 additions & 3 deletions msvc/corehook-test/detours_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ TEST_F(DetoursTest, ShouldFailWhenInstallingMaxHookCount) {
}
}
}
TEST_F(DetoursTest, GetHookBypassAddress_Should_Return_Invalid_Handle_With_Bad_Hook_Handle) {
TEST_F(DetoursTest, GetHookBypassAddressShouldReturnInvalidHandleWithBadHookHandle) {
PVOID *ppHookBypassAddress = nullptr;
EXPECT_EQ(ERROR_INVALID_HANDLE, DetourGetHookBypassAddress(nullptr, &ppHookBypassAddress));
}
TEST_F(DetoursTest, GetHookBypassAddress_Should_Return_Invalid_Handle_With_Bad_Output_Address) {
TEST_F(DetoursTest, GetHookBypassAddressShouldReturnInvalidHandleWithBadOutputAddress) {
HOOK_TRACE_INFO pHandle;
EXPECT_EQ(ERROR_INVALID_PARAMETER, DetourGetHookBypassAddress(&pHandle, nullptr));
}
TEST_F(DetoursTest, GetHookBypassAddress_Should_Return_Invalid_Handle_With_Bad_Hook_Handle_and_Output_Address) {
TEST_F(DetoursTest, GetHookBypassAddressShouldReturnInvalidHandleWithBadHookHandleandOutputAddress) {
EXPECT_EQ(ERROR_INVALID_HANDLE, DetourGetHookBypassAddress(nullptr, nullptr));
}

0 comments on commit bd6c677

Please sign in to comment.