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

Unified Diff: tools/flags/SkCommandLineFlags.h

Issue 23526065: gm: add --ignoreTests flag (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: implement_it Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: tools/flags/SkCommandLineFlags.h
===================================================================
--- tools/flags/SkCommandLineFlags.h (revision 11353)
+++ tools/flags/SkCommandLineFlags.h (working copy)
@@ -125,6 +125,18 @@
bool isEmpty() const { return this->count() == 0; }
+ /**
+ * Returns true iff string is equal to one of the strings in this array.
+ */
+ bool contains(const char* string) const {
+ for (int i = 0; i < fStrings.count(); i++) {
+ if (fStrings[i].equals(string)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
private:
void reset() { fStrings.reset(); }
« gm/tests/outputs/ignoring-one-test/output-expected/json-summary.txt ('K') | « gm/tests/run.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698