// Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. #ifndef CEF_TESTS_UNITTESTS_TEST_UTIL_H_ #define CEF_TESTS_UNITTESTS_TEST_UTIL_H_ #pragma once #include "include/cef_process_message.h" #include "include/cef_request.h" #include "include/cef_response.h" #include "include/cef_values.h" // Test that CefRequest::HeaderMap objects are equal // If |allowExtras| is true then additional header fields will be allowed in // |map2|. void TestMapEqual(CefRequest::HeaderMap& map1, CefRequest::HeaderMap& map2, bool allowExtras); // Test that CefPostDataElement objects are equal void TestPostDataElementEqual(CefRefPtr elem1, CefRefPtr elem2); // Test that CefPostData objects are equal void TestPostDataEqual(CefRefPtr postData1, CefRefPtr postData2); // Test that CefRequest objects are equal // If |allowExtras| is true then additional header fields will be allowed in // |request2|. void TestRequestEqual(CefRefPtr request1, CefRefPtr request2, bool allowExtras); // Test that CefResponse objects are equal // If |allowExtras| is true then additional header fields will be allowed in // |response2|. void TestResponseEqual(CefRefPtr response1, CefRefPtr response2, bool allowExtras); // Test if two binary values are equal. void TestBinaryEqual(CefRefPtr val1, CefRefPtr val2); // Test if two list values are equal. void TestListEqual(CefRefPtr val1, CefRefPtr val2); // Test if two dictionary values are equal. void TestDictionaryEqual(CefRefPtr val1, CefRefPtr val2); // Test if two process message values are equal. void TestProcessMessageEqual(CefRefPtr val1, CefRefPtr val2); // Test if two CefString vectors are equal. void TestStringVectorEqual(const std::vector& val1, const std::vector& val2); #endif // CEF_TESTS_UNITTESTS_TEST_UTIL_H_