diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-15 20:31:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-15 20:31:12 +0100 |
commit | c8cfdb1ced822711e772dfcc8f708b1a7a68b5fc (patch) | |
tree | bf511253e25459cafc91a5f3bea2f5c773677162 /test | |
parent | 62695c56956add5560933137a479f29f2d3a091b (diff) | |
download | qtlocation-mapboxgl-c8cfdb1ced822711e772dfcc8f708b1a7a68b5fc.tar.gz |
Merge pull request #14126 from mapbox/gfx-refactor-4
Graphics refactor #4
Diffstat (limited to 'test')
-rw-r--r-- | test/gl/bucket.test.cpp | 2 | ||||
-rw-r--r-- | test/programs/binary_program.test.cpp | 18 |
2 files changed, 10 insertions, 10 deletions
diff --git a/test/gl/bucket.test.cpp b/test/gl/bucket.test.cpp index 7e8740d8f9..bc9f6aac5a 100644 --- a/test/gl/bucket.test.cpp +++ b/test/gl/bucket.test.cpp @@ -26,7 +26,7 @@ namespace gfx { namespace detail { template <class A1, class A2> -bool operator==(const Vertex<A1, A2>& lhs, const Vertex<A1, A2>& rhs) { +bool operator==(const VertexType<A1, A2>& lhs, const VertexType<A1, A2>& rhs) { return std::tie(lhs.a1, lhs.a2) == std::tie(rhs.a1, rhs.a2); } diff --git a/test/programs/binary_program.test.cpp b/test/programs/binary_program.test.cpp index c70539ea81..76073efc87 100644 --- a/test/programs/binary_program.test.cpp +++ b/test/programs/binary_program.test.cpp @@ -1,16 +1,16 @@ #include <mbgl/test/util.hpp> -#include <mbgl/programs/binary_program.hpp> +#include <mbgl/gl/binary_program.hpp> using namespace mbgl; TEST(BinaryProgram, ObtainValues) { - const BinaryProgram binaryProgram{ 42, - "binary code", - "identifier", - { { "a_pos", 1 }, { "a_data", 4 } }, - { { "u_world", 1 }, { "u_ratio", 3 } }, - { { "u_image", 0 } } }; + const gl::BinaryProgram binaryProgram{ 42, + "binary code", + "identifier", + { { "a_pos", 1 }, { "a_data", 4 } }, + { { "u_world", 1 }, { "u_ratio", 3 } }, + { { "u_image", 0 } } }; EXPECT_EQ(42u, binaryProgram.format()); EXPECT_EQ("binary code", binaryProgram.code()); @@ -26,7 +26,7 @@ TEST(BinaryProgram, ObtainValues) { auto serialized = binaryProgram.serialize(); - const BinaryProgram binaryProgram2(std::move(serialized)); + const gl::BinaryProgram binaryProgram2(std::move(serialized)); EXPECT_EQ(42u, binaryProgram2.format()); EXPECT_EQ("binary code", binaryProgram2.code()); @@ -40,5 +40,5 @@ TEST(BinaryProgram, ObtainValues) { EXPECT_EQ(0, binaryProgram.textureLocation("u_image")); EXPECT_EQ(-1, binaryProgram.textureLocation("u_image2")); - EXPECT_THROW(BinaryProgram(""), std::runtime_error); + EXPECT_THROW(gl::BinaryProgram(""), std::runtime_error); } |