summaryrefslogtreecommitdiffstats
path: root/ppapi/shared_impl/unittest_utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'ppapi/shared_impl/unittest_utils.h')
-rw-r--r--ppapi/shared_impl/unittest_utils.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/ppapi/shared_impl/unittest_utils.h b/ppapi/shared_impl/unittest_utils.h
index e07d8a8..a6fb296 100644
--- a/ppapi/shared_impl/unittest_utils.h
+++ b/ppapi/shared_impl/unittest_utils.h
@@ -12,7 +12,12 @@ namespace ppapi {
// Compares two vars for equality. This is a deep comparison (the entire graph
// is traversed recursively). The function guarantees that the topology of the
// two PP_Var graphs being compared is identical, including graphs with cycles.
-bool TestEqual(const PP_Var& expected, const PP_Var& actual);
+// If |test_string_references| is set to true, then incoming references to
+// string vars in the two graphs must be isomorphic. Otherwise only the content
+// of the strings is tested for equality.
+bool TestEqual(const PP_Var& expected,
+ const PP_Var& actual,
+ bool test_string_references);
} // namespace ppapi