OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/shared_impl/unittest_utils.h" | 5 #include "ppapi/shared_impl/test_utils.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "ipc/ipc_message.h" | 11 #include "ipc/ipc_message.h" |
12 #include "ppapi/shared_impl/array_var.h" | 12 #include "ppapi/shared_impl/array_var.h" |
13 #include "ppapi/shared_impl/dictionary_var.h" | 13 #include "ppapi/shared_impl/dictionary_var.h" |
14 #include "ppapi/shared_impl/resource_var.h" | 14 #include "ppapi/shared_impl/resource_var.h" |
15 #include "ppapi/shared_impl/var.h" | 15 #include "ppapi/shared_impl/var.h" |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 | 202 |
203 } // namespace | 203 } // namespace |
204 | 204 |
205 bool TestEqual(const PP_Var& expected, | 205 bool TestEqual(const PP_Var& expected, |
206 const PP_Var& actual, | 206 const PP_Var& actual, |
207 bool test_string_references) { | 207 bool test_string_references) { |
208 base::hash_map<int64_t, int64_t> visited_map; | 208 base::hash_map<int64_t, int64_t> visited_map; |
209 return Equals(expected, actual, test_string_references, &visited_map); | 209 return Equals(expected, actual, test_string_references, &visited_map); |
210 } | 210 } |
211 | 211 |
| 212 std::string StripTestPrefixes(const std::string& test_name) { |
| 213 if (test_name.find("DISABLED_") == 0) |
| 214 return test_name.substr(strlen("DISABLED_")); |
| 215 return test_name; |
| 216 } |
| 217 |
212 } // namespace ppapi | 218 } // namespace ppapi |
OLD | NEW |