Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: gpu/config/gpu_test_expectations_parser_unittest.cc

Issue 15827008: Move gpu_test_config stuff from content/ to gpu/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « gpu/config/gpu_test_expectations_parser.cc ('k') | gpu/gpu.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/config/gpu_test_expectations_parser.cc ('k') | gpu/gpu.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698