summaryrefslogtreecommitdiffstats
path: root/content/test
diff options
context:
space:
mode:
authoryongsheng.zhu@intel.com <yongsheng.zhu@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 04:08:57 +0000
committeryongsheng.zhu@intel.com <yongsheng.zhu@intel.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-07-27 04:08:57 +0000
commit61d7e5e53c8c43a5ad6653038ab9bac22aac0fd9 (patch)
tree95c9ce99f09f168345374e2469a1b8a919916785 /content/test
parent484dcdf590f61638c7cbcc7becb04604c00e1fea (diff)
downloadchromium_src-61d7e5e53c8c43a5ad6653038ab9bac22aac0fd9.zip
chromium_src-61d7e5e53c8c43a5ad6653038ab9bac22aac0fd9.tar.gz
chromium_src-61d7e5e53c8c43a5ad6653038ab9bac22aac0fd9.tar.bz2
Add support for android in gpu test expections parser
So the parser can know 'Android' platform. Also the failed case 'GPUTestExpectationsParserTest.WebGLTestExpectationsValidation' is passed. BUG=118542 TEST=content_unittests Review URL: https://chromiumcodereview.appspot.com/10833003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148719 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test')
-rw-r--r--content/test/gpu/gpu_test_expectations_parser.cc5
-rw-r--r--content/test/gpu/gpu_test_expectations_parser_unittest.cc4
2 files changed, 7 insertions, 2 deletions
diff --git a/content/test/gpu/gpu_test_expectations_parser.cc b/content/test/gpu/gpu_test_expectations_parser.cc
index bc14b72..8caedc7 100644
--- a/content/test/gpu/gpu_test_expectations_parser.cc
+++ b/content/test/gpu/gpu_test_expectations_parser.cc
@@ -37,6 +37,7 @@ enum Token {
kConfigMac,
kConfigLinux,
kConfigChromeOS,
+ kConfigAndroid,
// gpu vendor
kConfigNVidia,
kConfigAMD,
@@ -79,6 +80,7 @@ const TokenInfo kTokenData[] = {
{ "mac", GPUTestConfig::kOsMac },
{ "linux", GPUTestConfig::kOsLinux },
{ "chromeos", GPUTestConfig::kOsChromeOS },
+ { "android", GPUTestConfig::kOsAndroid },
{ "nvidia", 0x10DE },
{ "amd", 0x1002 },
{ "intel", 0x8086 },
@@ -234,6 +236,7 @@ bool GPUTestExpectationsParser::ParseConfig(
case kConfigMac:
case kConfigLinux:
case kConfigChromeOS:
+ case kConfigAndroid:
case kConfigNVidia:
case kConfigAMD:
case kConfigIntel:
@@ -281,6 +284,7 @@ bool GPUTestExpectationsParser::ParseLine(
case kConfigMac:
case kConfigLinux:
case kConfigChromeOS:
+ case kConfigAndroid:
case kConfigNVidia:
case kConfigAMD:
case kConfigIntel:
@@ -391,6 +395,7 @@ bool GPUTestExpectationsParser::UpdateTestConfig(
case kConfigMac:
case kConfigLinux:
case kConfigChromeOS:
+ case kConfigAndroid:
if ((config->os() & kTokenData[token].flag) != 0) {
PushErrorMessage(kErrorMessage[kErrorEntryWithOsConflicts],
line_number);
diff --git a/content/test/gpu/gpu_test_expectations_parser_unittest.cc b/content/test/gpu/gpu_test_expectations_parser_unittest.cc
index d034797..cee17b7 100644
--- a/content/test/gpu/gpu_test_expectations_parser_unittest.cc
+++ b/content/test/gpu/gpu_test_expectations_parser_unittest.cc
@@ -89,7 +89,7 @@ TEST_F(GPUTestExpectationsParserTest, ValidUnrelatedTestEntry) {
TEST_F(GPUTestExpectationsParserTest, AllModifiers) {
const std::string text =
- "BUG12345 XP VISTA WIN7 LEOPARD SNOWLEOPARD LION LINUX CHROMEOS "
+ "BUG12345 XP VISTA WIN7 LEOPARD SNOWLEOPARD LION LINUX CHROMEOS ANDROID "
"NVIDIA INTEL AMD VMWARE RELEASE DEBUG : MyTest = "
"PASS FAIL FLAKY TIMEOUT SKIP";
@@ -115,7 +115,7 @@ TEST_F(GPUTestExpectationsParserTest, DuplicateModifiers) {
TEST_F(GPUTestExpectationsParserTest, AllModifiersLowerCase) {
const std::string text =
- "BUG12345 xp vista win7 leopard snowleopard lion linux chromeos "
+ "BUG12345 xp vista win7 leopard snowleopard lion linux chromeos android "
"nvidia intel amd vmware release debug : MyTest = "
"pass fail flaky timeout skip";