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 @@ ...@@ -8,7 +8,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "angle_unittests_utils.h" #include "tests/angle_unittests_utils.h"
#include "libANGLE/Program.h" #include "libANGLE/Program.h"
using namespace gl; using namespace gl;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
#include <gmock/gmock.h> #include <gmock/gmock.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "angle_unittests_utils.h" #include "tests/angle_unittests_utils.h"
#include "libANGLE/ResourceManager.h" #include "libANGLE/ResourceManager.h"
using namespace rx; using namespace rx;
......
...@@ -88,8 +88,6 @@ ...@@ -88,8 +88,6 @@
[ [
'<(angle_path)/include', '<(angle_path)/include',
'<(angle_path)/src', '<(angle_path)/src',
'<(angle_path)/src/compiler/preprocessor',
'<(angle_path)/src/tests',
], ],
'sources': 'sources':
[ [
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#define PREPROCESSOR_TESTS_MOCK_DIAGNOSTICS_H_ #define PREPROCESSOR_TESTS_MOCK_DIAGNOSTICS_H_
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include "DiagnosticsBase.h" #include "compiler/preprocessor/DiagnosticsBase.h"
class MockDiagnostics : public pp::Diagnostics class MockDiagnostics : public pp::Diagnostics
{ {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#define PREPROCESSOR_TESTS_MOCK_DIRECTIVE_HANDLER_H_ #define PREPROCESSOR_TESTS_MOCK_DIRECTIVE_HANDLER_H_
#include "gmock/gmock.h" #include "gmock/gmock.h"
#include "DirectiveHandlerBase.h" #include "compiler/preprocessor/DirectiveHandlerBase.h"
class MockDirectiveHandler : public pp::DirectiveHandler class MockDirectiveHandler : public pp::DirectiveHandler
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
void PreprocessorTest::preprocess(const char* input, const char* expected) void PreprocessorTest::preprocess(const char* input, const char* expected)
{ {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include "MockDiagnostics.h" #include "MockDiagnostics.h"
#include "MockDirectiveHandler.h" #include "MockDirectiveHandler.h"
#include "Preprocessor.h" #include "compiler/preprocessor/Preprocessor.h"
#ifndef PREPROCESSOR_TESTS_PREPROCESSOR_TEST_H_ #ifndef PREPROCESSOR_TESTS_PREPROCESSOR_TEST_H_
#define PREPROCESSOR_TESTS_PREPROCESSOR_TEST_H_ #define PREPROCESSOR_TESTS_PREPROCESSOR_TEST_H_
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#include <climits> #include <climits>
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
class CharTest : public PreprocessorTest, class CharTest : public PreprocessorTest,
public testing::WithParamInterface<int> public testing::WithParamInterface<int>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
class CommentTest : public PreprocessorTest, class CommentTest : public PreprocessorTest,
public testing::WithParamInterface<const char*> public testing::WithParamInterface<const char*>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
class DefineTest : public PreprocessorTest class DefineTest : public PreprocessorTest
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
class ErrorTest : public PreprocessorTest class ErrorTest : public PreprocessorTest
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
class ExtensionTest : public PreprocessorTest class ExtensionTest : public PreprocessorTest
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
#define CLOSED_RANGE(x, y) testing::Range(x, static_cast<char>((y) + 1)) #define CLOSED_RANGE(x, y) testing::Range(x, static_cast<char>((y) + 1))
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
class IfTest : public PreprocessorTest class IfTest : public PreprocessorTest
{ {
......
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Input.h" #include "compiler/preprocessor/Input.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
class InitTest : public PreprocessorTest class InitTest : public PreprocessorTest
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
class LocationTest : public PreprocessorTest class LocationTest : public PreprocessorTest
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
#define CLOSED_RANGE(x, y) testing::Range(x, static_cast<char>((y) + 1)) #define CLOSED_RANGE(x, y) testing::Range(x, static_cast<char>((y) + 1))
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
struct OperatorTestParam struct OperatorTestParam
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
class PragmaTest : public PreprocessorTest class PragmaTest : public PreprocessorTest
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
class SpaceTest : public PreprocessorTest class SpaceTest : public PreprocessorTest
{ {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
TEST(TokenTest, DefaultConstructor) TEST(TokenTest, DefaultConstructor)
{ {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
// //
#include "PreprocessorTest.h" #include "PreprocessorTest.h"
#include "Token.h" #include "compiler/preprocessor/Token.h"
class VersionTest : public PreprocessorTest 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