OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "ppapi/tests/test_case.h" | 5 #include "ppapi/tests/test_case.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "ppapi/tests/test_utils.h" | 9 #include "ppapi/tests/test_utils.h" |
10 #include "ppapi/tests/testing_instance.h" | 10 #include "ppapi/tests/testing_instance.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 } | 81 } |
82 | 82 |
83 bool TestCase::EnsureRunningOverHTTP() { | 83 bool TestCase::EnsureRunningOverHTTP() { |
84 if (instance_->protocol() != "http:") { | 84 if (instance_->protocol() != "http:") { |
85 instance_->AppendError("This test needs to be run over HTTP."); | 85 instance_->AppendError("This test needs to be run over HTTP."); |
86 return false; | 86 return false; |
87 } | 87 } |
88 | 88 |
89 return true; | 89 return true; |
90 } | 90 } |
| 91 |
| 92 bool TestCase::MatchesFilter(const std::string& test_name, |
| 93 const std::string& filter) { |
| 94 return filter.empty() || (test_name == filter); |
| 95 } |
| 96 |
OLD | NEW |