summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/Test.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2016-04-10 09:28:39 +0000
commit32761a6cee1d0dee366b885b7b9c777e67885688 (patch)
treed6bec92bebfb216f4126356e55518842c2f476a1 /Tools/TestWebKitAPI/Test.h
parenta4e969f4965059196ca948db781e52f7cfebf19e (diff)
downloadWebKitGtk-tarball-32761a6cee1d0dee366b885b7b9c777e67885688.tar.gz
webkitgtk-2.4.11webkitgtk-2.4.11
Diffstat (limited to 'Tools/TestWebKitAPI/Test.h')
-rw-r--r--Tools/TestWebKitAPI/Test.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/Tools/TestWebKitAPI/Test.h b/Tools/TestWebKitAPI/Test.h
index cf44045fb..ca43924a2 100644
--- a/Tools/TestWebKitAPI/Test.h
+++ b/Tools/TestWebKitAPI/Test.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010, 2016 Apple Inc. All rights reserved.
+ * Copyright (C) 2010 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -26,8 +26,6 @@
#ifndef Test_h
#define Test_h
-#include <type_traits>
-
namespace TestWebKitAPI {
#define EXPECT_NOT_NULL(expression) \
@@ -42,18 +40,6 @@ namespace TestWebKitAPI {
#define ASSERT_NULL(expression) \
ASSERT_TRUE(!(expression))
-template<typename T>
-static inline ::testing::AssertionResult assertStrongEnum(const char* expected_expression, const char* actual_expression, T expected, T actual)
-{
- static_assert(std::is_enum<T>::value, "T is not an enum type");
- typedef typename std::underlying_type<T>::type UnderlyingStorageType;
- return ::testing::internal::CmpHelperEQ(expected_expression, actual_expression, static_cast<UnderlyingStorageType>(expected), static_cast<UnderlyingStorageType>(actual));
-}
-
-#define EXPECT_STRONG_ENUM_EQ(expected, actual) \
- EXPECT_PRED_FORMAT2(TestWebKitAPI::assertStrongEnum, expected, actual)
-
-
} // namespace TestWebKitAPI
#endif // Test_h