1 //
2 // Copyright 2014 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 // API_test.cpp:
7 //   Some tests for the compiler API.
8 //
9 
10 #include "GLSLANG/ShaderLang.h"
11 #include "angle_gl.h"
12 #include "gtest/gtest.h"
13 
TEST(APITest,CompareShBuiltInResources)14 TEST(APITest, CompareShBuiltInResources)
15 {
16     ShBuiltInResources a_resources;
17     memset(&a_resources, 88, sizeof(a_resources));
18     sh::InitBuiltInResources(&a_resources);
19 
20     ShBuiltInResources b_resources;
21     memset(&b_resources, 77, sizeof(b_resources));
22     sh::InitBuiltInResources(&b_resources);
23 
24     EXPECT_TRUE(memcmp(&a_resources, &b_resources, sizeof(a_resources)) == 0);
25 }
26