Home | History | Annotate | Download | only in preprocessor_tests
      1 //
      2 // Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
      3 // Use of this source code is governed by a BSD-style license that can be
      4 // found in the LICENSE file.
      5 //
      6 
      7 #include "gtest/gtest.h"
      8 
      9 #include "MockDiagnostics.h"
     10 #include "MockDirectiveHandler.h"
     11 #include "Preprocessor.h"
     12 
     13 #ifndef PREPROCESSOR_TESTS_PREPROCESSOR_TEST_H_
     14 #define PREPROCESSOR_TESTS_PREPROCESSOR_TEST_H_
     15 
     16 class PreprocessorTest : public testing::Test
     17 {
     18   protected:
     19     PreprocessorTest() : mPreprocessor(&mDiagnostics, &mDirectiveHandler) { }
     20 
     21     // Preprocesses the input string and verifies that it matches
     22     // expected output.
     23     void preprocess(const char* input, const char* expected);
     24 
     25     MockDiagnostics mDiagnostics;
     26     MockDirectiveHandler mDirectiveHandler;
     27     pp::Preprocessor mPreprocessor;
     28 };
     29 
     30 #endif  // PREPROCESSOR_TESTS_PREPROCESSOR_TEST_H_
     31