OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/logging.h" | 5 #include "base/logging.h" |
6 #include "content/test/gpu/gpu_test_expectations_parser.h" | 6 #include "gpu/config/gpu_test_expectations_parser.h" |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 | 8 |
| 9 namespace gpu { |
| 10 |
9 class GPUTestExpectationsParserTest : public testing::Test { | 11 class GPUTestExpectationsParserTest : public testing::Test { |
10 public: | 12 public: |
11 GPUTestExpectationsParserTest() { } | 13 GPUTestExpectationsParserTest() { } |
12 | 14 |
13 virtual ~GPUTestExpectationsParserTest() { } | 15 virtual ~GPUTestExpectationsParserTest() { } |
14 | 16 |
15 const GPUTestBotConfig& bot_config() const { | 17 const GPUTestBotConfig& bot_config() const { |
16 return bot_config_; | 18 return bot_config_; |
17 } | 19 } |
18 | 20 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 234 |
233 GPUTestExpectationsParser parser; | 235 GPUTestExpectationsParser parser; |
234 EXPECT_TRUE(parser.LoadTestExpectations(text)); | 236 EXPECT_TRUE(parser.LoadTestExpectations(text)); |
235 EXPECT_EQ(0u, parser.GetErrorMessages().size()); | 237 EXPECT_EQ(0u, parser.GetErrorMessages().size()); |
236 EXPECT_EQ(GPUTestExpectationsParser::kGpuTestFail, | 238 EXPECT_EQ(GPUTestExpectationsParser::kGpuTestFail, |
237 parser.GetTestExpectation("MyTest0", bot_config())); | 239 parser.GetTestExpectation("MyTest0", bot_config())); |
238 EXPECT_EQ(GPUTestExpectationsParser::kGpuTestPass, | 240 EXPECT_EQ(GPUTestExpectationsParser::kGpuTestPass, |
239 parser.GetTestExpectation("OtherTest", bot_config())); | 241 parser.GetTestExpectation("OtherTest", bot_config())); |
240 } | 242 } |
241 | 243 |
242 TEST_F(GPUTestExpectationsParserTest, WebGLTestExpectationsValidation) { | 244 } // namespace gpu |
243 GPUTestExpectationsParser parser; | |
244 EXPECT_TRUE(parser.LoadTestExpectations( | |
245 GPUTestExpectationsParser::kWebGLConformanceTest)); | |
246 EXPECT_EQ(0u, parser.GetErrorMessages().size()); | |
247 for (size_t i = 0; i < parser.GetErrorMessages().size(); ++i) | |
248 LOG(ERROR) << parser.GetErrorMessages()[i]; | |
249 } | |
250 | 245 |
OLD | NEW |