1- // === ParseHLSLRootSignatureTest .cpp - Parse Root Signature tests ---------===//
1+ // === LexHLSLRootSignatureTest .cpp - Lex Root Signature tests ---- ---------===//
22//
33// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44// See https://llvm.org/LICENSE.txt for license information.
55// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66//
77// ===----------------------------------------------------------------------===//
88
9- #include " clang/Parse/ParseHLSLRootSignature .h"
9+ #include " clang/Lex/LexHLSLRootSignature .h"
1010#include " gtest/gtest.h"
1111
1212using namespace clang ;
1313
1414namespace {
1515
1616// The test fixture.
17- class ParseHLSLRootSignatureTest : public ::testing::Test {
17+ class LexHLSLRootSignatureTest : public ::testing::Test {
1818protected:
19- ParseHLSLRootSignatureTest () {}
19+ LexHLSLRootSignatureTest () {}
2020
2121 void CheckTokens (hlsl::RootSignatureLexer &Lexer,
2222 SmallVector<hlsl::RootSignatureToken> &Computed,
@@ -38,7 +38,7 @@ class ParseHLSLRootSignatureTest : public ::testing::Test {
3838
3939// Lexing Tests
4040
41- TEST_F (ParseHLSLRootSignatureTest , ValidLexNumbersTest) {
41+ TEST_F (LexHLSLRootSignatureTest , ValidLexNumbersTest) {
4242 // This test will check that we can lex different number tokens
4343 const llvm::StringLiteral Source = R"cc(
4444 -42 42 +42 +2147483648
@@ -75,7 +75,7 @@ TEST_F(ParseHLSLRootSignatureTest, ValidLexNumbersTest) {
7575 ASSERT_EQ (IntToken.NumSpelling , " 2147483648" );
7676}
7777
78- TEST_F (ParseHLSLRootSignatureTest , ValidLexAllTokensTest) {
78+ TEST_F (LexHLSLRootSignatureTest , ValidLexAllTokensTest) {
7979 // This test will check that we can lex all defined tokens as defined in
8080 // HLSLRootSignatureTokenKinds.def, plus some additional integer variations
8181 const llvm::StringLiteral Source = R"cc(
@@ -114,13 +114,13 @@ TEST_F(ParseHLSLRootSignatureTest, ValidLexAllTokensTest) {
114114 SmallVector<hlsl::RootSignatureToken> Tokens;
115115 SmallVector<hlsl::TokenKind> Expected = {
116116#define TOK (NAME ) hlsl::TokenKind::NAME,
117- #include " clang/Parse /HLSLRootSignatureTokenKinds.def"
117+ #include " clang/Lex /HLSLRootSignatureTokenKinds.def"
118118 };
119119
120120 CheckTokens (Lexer, Tokens, Expected);
121121}
122122
123- TEST_F (ParseHLSLRootSignatureTest , ValidLexPeekTest) {
123+ TEST_F (LexHLSLRootSignatureTest , ValidLexPeekTest) {
124124 // This test will check that we the peek api is correctly used
125125 const llvm::StringLiteral Source = R"cc(
126126 )1
0 commit comments