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

Side by Side Diff: ppapi/shared_impl/test_utils.h

Issue 1140953003: PPAPI Testing: Clean up location of ppapi::StripTestPrefixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move to shared_impl Created 5 years, 7 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
OLDNEW
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 #ifndef PPAPI_SHARED_IMPL_UNITTEST_UTILS_H_ 5 #ifndef PPAPI_SHARED_IMPL_TEST_UTILS_H_
6 #define PPAPI_SHARED_IMPL_UNITTEST_UTILS_H_ 6 #define PPAPI_SHARED_IMPL_TEST_UTILS_H_
7
8 #include <string>
7 9
8 #include "ppapi/c/pp_var.h" 10 #include "ppapi/c/pp_var.h"
9 11
10 namespace ppapi { 12 namespace ppapi {
11 13
12 // Compares two vars for equality. This is a deep comparison (the entire graph 14 // Compares two vars for equality. This is a deep comparison (the entire graph
13 // is traversed recursively). The function guarantees that the topology of the 15 // is traversed recursively). The function guarantees that the topology of the
14 // two PP_Var graphs being compared is identical, including graphs with cycles. 16 // two PP_Var graphs being compared is identical, including graphs with cycles.
15 // If |test_string_references| is set to true, then incoming references to 17 // If |test_string_references| is set to true, then incoming references to
16 // string vars in the two graphs must be isomorphic. Otherwise only the content 18 // string vars in the two graphs must be isomorphic. Otherwise only the content
17 // of the strings is tested for equality. 19 // of the strings is tested for equality.
18 bool TestEqual(const PP_Var& expected, 20 bool TestEqual(const PP_Var& expected,
19 const PP_Var& actual, 21 const PP_Var& actual,
20 bool test_string_references); 22 bool test_string_references);
21 23
24 std::string StripTestPrefixes(const std::string& test_name);
25
22 } // namespace ppapi 26 } // namespace ppapi
23 27
24 #endif // PPAPI_SHARED_IMPL_UNITTEST_UTILS_H_ 28 #endif // PPAPI_SHARED_IMPL_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698