blob: d46bec64d76f15f3e71e24b4f78cb2fd1fb550da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "gpu/command_buffer/service/context_group.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gpu {
namespace gles2 {
class ContextGroupTest : public testing::Test {
public:
ContextGroupTest() {
}
protected:
virtual void SetUp() {
}
virtual void TearDown() {
}
ContextGroup group_;
};
TEST_F(ContextGroupTest, Basic) {
// Test it starts off uninitialized.
EXPECT_EQ(0u, group_.max_vertex_attribs());
EXPECT_EQ(0u, group_.max_texture_units());
EXPECT_TRUE(group_.buffer_manager() == NULL);
EXPECT_TRUE(group_.framebuffer_manager() == NULL);
EXPECT_TRUE(group_.renderbuffer_manager() == NULL);
EXPECT_TRUE(group_.texture_manager() == NULL);
EXPECT_TRUE(group_.program_manager() == NULL);
EXPECT_TRUE(group_.shader_manager() == NULL);
}
} // namespace gles2
} // namespace gpu
|