summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2014-02-27 14:28:02 +0000
committerAlexander Kornienko <alexfh@google.com>2014-02-27 14:28:02 +0000
commit098871609f7a15b4992bd3ae5552b9d144ff38a1 (patch)
treefd48e9729d896778eeba61b08140bc1b9e4030ff /clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
parent527aa5052d2816f13368a5c0b1465b7e413a8d0c (diff)
downloadbcm5719-llvm-098871609f7a15b4992bd3ae5552b9d144ff38a1.tar.gz
bcm5719-llvm-098871609f7a15b4992bd3ae5552b9d144ff38a1.zip
Made the ClangTidyTest helper class independent of the testing framework.
Reviewers: klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2895 llvm-svn: 202399
Diffstat (limited to 'clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp')
-rw-r--r--clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp b/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
index 4de31aa72de..e69616499c0 100644
--- a/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
+++ b/clang-tools-extra/unittests/clang-tidy/LLVMModuleTest.cpp
@@ -1,14 +1,16 @@
#include "ClangTidyTest.h"
#include "llvm/LLVMTidyModule.h"
+#include "gtest/gtest.h"
namespace clang {
namespace tidy {
+namespace test {
-typedef ClangTidyTest<NamespaceCommentCheck> NamespaceCommentCheckTest;
-
-TEST_F(NamespaceCommentCheckTest, Basic) {
- EXPECT_EQ("namespace i {\n} // namespace i", runCheckOn("namespace i {\n}"));
+TEST(NamespaceCommentCheckTest, Basic) {
+ EXPECT_EQ("namespace i {\n} // namespace i",
+ runCheckOnCode<NamespaceCommentCheck>("namespace i {\n}"));
}
+} // namespace test
} // namespace tidy
} // namespace clang
OpenPOWER on IntegriCloud