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

Side by Side Diff: trunk/src/gpu/config/gpu_test_expectations_parser.cc

Issue 474483002: Revert 289312 "Move StringToUpperASCII and LowerCaseEqualsASCII ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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
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 "gpu/config/gpu_test_expectations_parser.h" 5 #include "gpu/config/gpu_test_expectations_parser.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_split.h" 10 #include "base/strings/string_split.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 "two entries's configs overlap", 128 "two entries's configs overlap",
129 }; 129 };
130 130
131 Token ParseToken(const std::string& word) { 131 Token ParseToken(const std::string& word) {
132 if (StartsWithASCII(word, "//", false)) 132 if (StartsWithASCII(word, "//", false))
133 return kTokenComment; 133 return kTokenComment;
134 if (StartsWithASCII(word, "0x", false)) 134 if (StartsWithASCII(word, "0x", false))
135 return kConfigGPUDeviceID; 135 return kConfigGPUDeviceID;
136 136
137 for (int32 i = 0; i < kNumberOfExactMatchTokens; ++i) { 137 for (int32 i = 0; i < kNumberOfExactMatchTokens; ++i) {
138 if (base::LowerCaseEqualsASCII(word, kTokenData[i].name)) 138 if (LowerCaseEqualsASCII(word, kTokenData[i].name))
139 return static_cast<Token>(i); 139 return static_cast<Token>(i);
140 } 140 }
141 return kTokenWord; 141 return kTokenWord;
142 } 142 }
143 143
144 // reference name can have the last character as *. 144 // reference name can have the last character as *.
145 bool NamesMatching(const std::string& ref, const std::string& test_name) { 145 bool NamesMatching(const std::string& ref, const std::string& test_name) {
146 size_t len = ref.length(); 146 size_t len = ref.length();
147 if (len == 0) 147 if (len == 0)
148 return false; 148 return false;
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 message.c_str())); 498 message.c_str()));
499 } 499 }
500 500
501 GPUTestExpectationsParser:: GPUTestExpectationEntry::GPUTestExpectationEntry() 501 GPUTestExpectationsParser:: GPUTestExpectationEntry::GPUTestExpectationEntry()
502 : test_expectation(0), 502 : test_expectation(0),
503 line_number(0) { 503 line_number(0) {
504 } 504 }
505 505
506 } // namespace gpu 506 } // namespace gpu
507 507
OLDNEW
« no previous file with comments | « trunk/src/google_apis/gaia/gaia_auth_fetcher.cc ('k') | trunk/src/media/base/audio_video_metadata_extractor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698