Commit 2728f992 by Corentin Wallez

Make unittest #includes start from src

This is will help avoid adding many include directories for the GN build. BUG=angleproject:929 Change-Id: If8f7e98526df3560b8e410ec86271a2da0c6889d Reviewed-on: https://chromium-review.googlesource.com/296480Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 89bb70e9
......@@ -8,7 +8,7 @@
#include <gtest/gtest.h>
#include "angle_unittests_utils.h"
#include "tests/angle_unittests_utils.h"
#include "libANGLE/Program.h"
using namespace gl;
......
......@@ -9,7 +9,7 @@
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "angle_unittests_utils.h"
#include "tests/angle_unittests_utils.h"
#include "libANGLE/ResourceManager.h"
using namespace rx;
......
......@@ -88,8 +88,6 @@
[
'<(angle_path)/include',
'<(angle_path)/src',
'<(angle_path)/src/compiler/preprocessor',
'<(angle_path)/src/tests',
],
'sources':
[
......
......@@ -8,7 +8,7 @@
#define PREPROCESSOR_TESTS_MOCK_DIAGNOSTICS_H_
#include "gmock/gmock.h"
#include "DiagnosticsBase.h"
#include "compiler/preprocessor/DiagnosticsBase.h"
class MockDiagnostics : public pp::Diagnostics
{
......
......@@ -8,7 +8,7 @@
#define PREPROCESSOR_TESTS_MOCK_DIRECTIVE_HANDLER_H_
#include "gmock/gmock.h"
#include "DirectiveHandlerBase.h"
#include "compiler/preprocessor/DirectiveHandlerBase.h"
class MockDirectiveHandler : public pp::DirectiveHandler
{
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
void PreprocessorTest::preprocess(const char* input, const char* expected)
{
......
......@@ -8,7 +8,7 @@
#include "MockDiagnostics.h"
#include "MockDirectiveHandler.h"
#include "Preprocessor.h"
#include "compiler/preprocessor/Preprocessor.h"
#ifndef PREPROCESSOR_TESTS_PREPROCESSOR_TEST_H_
#define PREPROCESSOR_TESTS_PREPROCESSOR_TEST_H_
......
......@@ -8,7 +8,7 @@
#include <climits>
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
class CharTest : public PreprocessorTest,
public testing::WithParamInterface<int>
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
class CommentTest : public PreprocessorTest,
public testing::WithParamInterface<const char*>
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
class DefineTest : public PreprocessorTest
{
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
class ErrorTest : public PreprocessorTest
{
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
class ExtensionTest : public PreprocessorTest
{
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
#define CLOSED_RANGE(x, y) testing::Range(x, static_cast<char>((y) + 1))
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
class IfTest : public PreprocessorTest
{
......
......@@ -5,8 +5,8 @@
//
#include "PreprocessorTest.h"
#include "Input.h"
#include "Token.h"
#include "compiler/preprocessor/Input.h"
#include "compiler/preprocessor/Token.h"
class InitTest : public PreprocessorTest
{
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
class LocationTest : public PreprocessorTest
{
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
#define CLOSED_RANGE(x, y) testing::Range(x, static_cast<char>((y) + 1))
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
struct OperatorTestParam
{
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
class PragmaTest : public PreprocessorTest
{
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
class SpaceTest : public PreprocessorTest
{
......
......@@ -6,7 +6,7 @@
#include "gtest/gtest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
TEST(TokenTest, DefaultConstructor)
{
......
......@@ -5,7 +5,7 @@
//
#include "PreprocessorTest.h"
#include "Token.h"
#include "compiler/preprocessor/Token.h"
class VersionTest : public PreprocessorTest
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment