Revert of https://codereview.chromium.org/82763010/
[chromium-blink-merge.git] / ppapi / shared_impl / unittest_utils.h
blobe07d8a8a3fccfeb971726c59c9089c70e5e2af7b
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
3 // found in the LICENSE file.
5 #ifndef PPAPI_SHARED_IMPL_UNITTEST_UTILS_H_
6 #define PPAPI_SHARED_IMPL_UNITTEST_UTILS_H_
8 #include "ppapi/c/pp_var.h"
10 namespace ppapi {
12 // 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
14 // two PP_Var graphs being compared is identical, including graphs with cycles.
15 bool TestEqual(const PP_Var& expected, const PP_Var& actual);
17 } // namespace ppapi
19 #endif // PPAPI_SHARED_IMPL_UNITTEST_UTILS_H_