2015-04-26 20:40:01 +02:00
|
|
|
// Copyright (c) 2015 Marshall A. Greenblatt. All rights reserved.
|
|
|
|
//
|
|
|
|
// Redistribution and use in source and binary forms, with or without
|
|
|
|
// modification, are permitted provided that the following conditions are
|
|
|
|
// met:
|
|
|
|
//
|
|
|
|
// * Redistributions of source code must retain the above copyright
|
|
|
|
// notice, this list of conditions and the following disclaimer.
|
|
|
|
// * Redistributions in binary form must reproduce the above
|
|
|
|
// copyright notice, this list of conditions and the following disclaimer
|
|
|
|
// in the documentation and/or other materials provided with the
|
|
|
|
// distribution.
|
|
|
|
// * Neither the name of Google Inc. nor the name Chromium Embedded
|
|
|
|
// Framework nor the names of its contributors may be used to endorse
|
|
|
|
// or promote products derived from this software without specific prior
|
|
|
|
// written permission.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// The contents of this file must follow a specific format in order to
|
|
|
|
// support the CEF translator tool. See the translator.README.txt file in the
|
|
|
|
// tools directory for more information.
|
|
|
|
//
|
|
|
|
// THIS FILE IS FOR TESTING PURPOSES ONLY.
|
|
|
|
//
|
2016-11-18 00:52:42 +01:00
|
|
|
// The APIs defined in this file are for testing purposes only. They should only
|
|
|
|
// be included from unit test targets.
|
2015-04-26 20:40:01 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef CEF_INCLUDE_TEST_CEF_TEST_H_
|
|
|
|
#define CEF_INCLUDE_TEST_CEF_TEST_H_
|
|
|
|
#pragma once
|
|
|
|
|
2016-11-18 00:52:42 +01:00
|
|
|
#if !defined(BUILDING_CEF_SHARED) && !defined(WRAPPING_CEF_SHARED) && \
|
|
|
|
!defined(UNIT_TEST)
|
|
|
|
#error This file can be included for unit tests only
|
|
|
|
#endif
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
#include <map>
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
#include "include/cef_base.h"
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
class CefTranslatorTestRefPtrClient;
|
|
|
|
class CefTranslatorTestRefPtrClientChild;
|
|
|
|
class CefTranslatorTestRefPtrLibrary;
|
|
|
|
class CefTranslatorTestRefPtrLibraryChild;
|
|
|
|
class CefTranslatorTestScopedClient;
|
|
|
|
class CefTranslatorTestScopedClientChild;
|
|
|
|
class CefTranslatorTestScopedLibrary;
|
|
|
|
class CefTranslatorTestScopedLibraryChild;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Test values.
|
2017-05-17 11:29:28 +02:00
|
|
|
#define TEST_INT_VAL 5
|
|
|
|
#define TEST_INT_VAL2 60
|
|
|
|
#define TEST_BOOL_VAL true
|
|
|
|
#define TEST_DOUBLE_VAL 4.543
|
|
|
|
#define TEST_LONG_VAL -65
|
|
|
|
#define TEST_SIZET_VAL 3U
|
|
|
|
#define TEST_STRING_VAL "My test string"
|
|
|
|
#define TEST_STRING_VAL2 "My 2nd test string"
|
|
|
|
#define TEST_STRING_VAL3 "My 3rd test string"
|
|
|
|
#define TEST_STRING_KEY "key0"
|
|
|
|
#define TEST_STRING_KEY2 "key1"
|
|
|
|
#define TEST_STRING_KEY3 "key2"
|
|
|
|
#define TEST_X_VAL 44
|
|
|
|
#define TEST_Y_VAL 754
|
|
|
|
#define TEST_X_VAL2 900
|
|
|
|
#define TEST_Y_VAL2 300
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Class for testing all of the possible data transfer types.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-10 00:11:28 +01:00
|
|
|
/*--cef(source=library)--*/
|
2017-02-09 23:07:43 +01:00
|
|
|
class CefTranslatorTest : public CefBaseRefCounted {
|
2015-04-26 20:40:01 +02:00
|
|
|
public:
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Create the test object.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
static CefRefPtr<CefTranslatorTest> Create();
|
|
|
|
|
|
|
|
// PRIMITIVE VALUES
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a void value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual void GetVoid() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a bool value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool GetBool() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return an int value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int GetInt() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a double value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual double GetDouble() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a long value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual long GetLong() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a size_t value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual size_t GetSizet() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a void value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool SetVoid() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a bool value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool SetBool(bool val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an int value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool SetInt(int val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a double value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool SetDouble(double val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a long value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool SetLong(long val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a size_t value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool SetSizet(size_t val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// PRIMITIVE LIST VALUES
|
|
|
|
|
|
|
|
// Test both with and without a typedef.
|
|
|
|
typedef std::vector<int> IntList;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a int list value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool SetIntList(const std::vector<int>& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return an int list value by out-param.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef(count_func=val:GetIntListSize)--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool GetIntListByRef(IntList& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return the number of points that will be output above.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual size_t GetIntListSize() = 0;
|
|
|
|
|
|
|
|
// STRING VALUES
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a string value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual CefString GetString() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a string value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool SetString(const CefString& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a string value by out-param.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual void GetStringByRef(CefString& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// STRING LIST VALUES
|
|
|
|
|
|
|
|
// Test both with and without a typedef.
|
|
|
|
typedef std::vector<CefString> StringList;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a string list value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool SetStringList(const std::vector<CefString>& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a string list value by out-param.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool GetStringListByRef(StringList& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// STRING MAP VALUES
|
|
|
|
|
|
|
|
// Test both with and without a typedef.
|
|
|
|
typedef std::map<CefString, CefString> StringMap;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a string map value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool SetStringMap(const StringMap& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a string map value by out-param.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool GetStringMapByRef(std::map<CefString, CefString>& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// STRING MULTIMAP VALUES
|
|
|
|
|
|
|
|
// Test both with and without a typedef.
|
|
|
|
typedef std::multimap<CefString, CefString> StringMultimap;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a string multimap value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual bool SetStringMultimap(
|
2017-05-17 11:29:28 +02:00
|
|
|
const std::multimap<CefString, CefString>& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a string multimap value by out-param.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool GetStringMultimapByRef(StringMultimap& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// STRUCT VALUES
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a point value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual CefPoint GetPoint() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a point value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool SetPoint(const CefPoint& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a point value by out-param.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual void GetPointByRef(CefPoint& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// STRUCT LIST VALUES
|
|
|
|
|
|
|
|
// Test both with and without a typedef.
|
|
|
|
typedef std::vector<CefPoint> PointList;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a point list vlaue.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool SetPointList(const std::vector<CefPoint>& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a point list value by out-param.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef(count_func=val:GetPointListSize)--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool GetPointListByRef(PointList& val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return the number of points that will be output above.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual size_t GetPointListSize() = 0;
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// LIBRARY-SIDE REFPTR VALUES
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return an new library-side object.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
virtual CefRefPtr<CefTranslatorTestRefPtrLibrary> GetRefPtrLibrary(
|
2017-05-17 11:29:28 +02:00
|
|
|
int val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object. Returns the value from
|
|
|
|
/// CefTranslatorTestRefPtrLibrary::GetValue().
|
|
|
|
/// This tests input and execution of a library-side object type.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
virtual int SetRefPtrLibrary(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary> val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object. Returns the object passed in. This tests input and output
|
|
|
|
/// of a library-side object type.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
virtual CefRefPtr<CefTranslatorTestRefPtrLibrary> SetRefPtrLibraryAndReturn(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary> val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a child object. Returns the value from
|
|
|
|
/// CefTranslatorTestRefPtrLibrary::GetValue(). This tests input of a library-
|
|
|
|
/// side child object type and execution as the parent type.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
virtual int SetChildRefPtrLibrary(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibraryChild> val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a child object. Returns the object as the parent type. This tests
|
|
|
|
/// input of a library-side child object type and return as the parent type.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
virtual CefRefPtr<CefTranslatorTestRefPtrLibrary>
|
|
|
|
SetChildRefPtrLibraryAndReturnParent(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibraryChild> val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// LIBRARY-SIDE REFPTR LIST VALUES
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Test both with and without a typedef.
|
2017-05-17 11:29:28 +02:00
|
|
|
typedef std::vector<CefRefPtr<CefTranslatorTestRefPtrLibrary>>
|
2017-02-07 22:25:11 +01:00
|
|
|
RefPtrLibraryList;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object list vlaue.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
virtual bool SetRefPtrLibraryList(
|
2017-05-17 11:29:28 +02:00
|
|
|
const std::vector<CefRefPtr<CefTranslatorTestRefPtrLibrary>>& val,
|
|
|
|
int val1,
|
|
|
|
int val2) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return an object list value by out-param.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
/*--cef(count_func=val:GetRefPtrLibraryListSize)--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual bool GetRefPtrLibraryListByRef(RefPtrLibraryList& val,
|
|
|
|
int val1,
|
|
|
|
int val2) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return the number of object that will be output above.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
virtual size_t GetRefPtrLibraryListSize() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// CLIENT-SIDE REFPTR VALUES
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object. Returns the value from
|
|
|
|
/// CefTranslatorTestRefPtrClient::GetValue().
|
|
|
|
/// This tests input and execution of a client-side object type.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int SetRefPtrClient(CefRefPtr<CefTranslatorTestRefPtrClient> val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object. Returns the handler passed in. This tests input and output
|
|
|
|
/// of a client-side object type.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
virtual CefRefPtr<CefTranslatorTestRefPtrClient> SetRefPtrClientAndReturn(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a child object. Returns the value from
|
|
|
|
/// CefTranslatorTestRefPtrClient::GetValue(). This tests input of a client-
|
|
|
|
/// side child object type and execution as the parent type.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
virtual int SetChildRefPtrClient(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClientChild> val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a child object. Returns the object as the parent type. This tests
|
|
|
|
/// input of a client-side child object type and return as the parent type.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
virtual CefRefPtr<CefTranslatorTestRefPtrClient>
|
|
|
|
SetChildRefPtrClientAndReturnParent(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClientChild> val) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// CLIENT-SIDE REFPTR LIST VALUES
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Test both with and without a typedef.
|
2017-05-17 11:29:28 +02:00
|
|
|
typedef std::vector<CefRefPtr<CefTranslatorTestRefPtrClient>>
|
2017-02-07 22:25:11 +01:00
|
|
|
RefPtrClientList;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object list vlaue.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
virtual bool SetRefPtrClientList(
|
2017-05-17 11:29:28 +02:00
|
|
|
const std::vector<CefRefPtr<CefTranslatorTestRefPtrClient>>& val,
|
|
|
|
int val1,
|
|
|
|
int val2) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return an object list value by out-param.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
/*--cef(count_func=val:GetRefPtrLibraryListSize)--*/
|
|
|
|
virtual bool GetRefPtrClientListByRef(
|
|
|
|
RefPtrClientList& val,
|
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> val1,
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> val2) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return the number of object that will be output above.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
virtual size_t GetRefPtrClientListSize() = 0;
|
|
|
|
|
|
|
|
// LIBRARY-SIDE OWNPTR VALUES
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return an new library-side object.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual CefOwnPtr<CefTranslatorTestScopedLibrary> GetOwnPtrLibrary(
|
2017-05-17 11:29:28 +02:00
|
|
|
int val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object. Returns the value from
|
|
|
|
/// CefTranslatorTestScopedLibrary::GetValue().
|
|
|
|
/// This tests input and execution of a library-side object type.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual int SetOwnPtrLibrary(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary> val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object. Returns the object passed in. This tests input and output
|
|
|
|
/// of a library-side object type.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual CefOwnPtr<CefTranslatorTestScopedLibrary> SetOwnPtrLibraryAndReturn(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary> val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a child object. Returns the value from
|
|
|
|
/// CefTranslatorTestScopedLibrary::GetValue(). This tests input of a library-
|
|
|
|
/// side child object type and execution as the parent type.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual int SetChildOwnPtrLibrary(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibraryChild> val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a child object. Returns the object as the parent type. This tests
|
|
|
|
/// input of a library-side child object type and return as the parent type.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual CefOwnPtr<CefTranslatorTestScopedLibrary>
|
|
|
|
SetChildOwnPtrLibraryAndReturnParent(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibraryChild> val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// CLIENT-SIDE OWNPTR VALUES
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object. Returns the value from
|
|
|
|
/// CefTranslatorTestScopedClient::GetValue().
|
|
|
|
/// This tests input and execution of a client-side object type.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int SetOwnPtrClient(CefOwnPtr<CefTranslatorTestScopedClient> val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object. Returns the handler passed in. This tests input and output
|
|
|
|
/// of a client-side object type.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual CefOwnPtr<CefTranslatorTestScopedClient> SetOwnPtrClientAndReturn(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedClient> val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a child object. Returns the value from
|
|
|
|
/// CefTranslatorTestScopedClient::GetValue(). This tests input of a client-
|
|
|
|
/// side child object type and execution as the parent type.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual int SetChildOwnPtrClient(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedClientChild> val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a child object. Returns the object as the parent type. This tests
|
|
|
|
/// input of a client-side child object type and return as the parent type.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual CefOwnPtr<CefTranslatorTestScopedClient>
|
|
|
|
SetChildOwnPtrClientAndReturnParent(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedClientChild> val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// LIBRARY-SIDE RAWPTR VALUES
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object. Returns the value from
|
|
|
|
/// CefTranslatorTestScopedLibrary::GetValue().
|
|
|
|
/// This tests input and execution of a library-side object type.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual int SetRawPtrLibrary(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRawPtr<CefTranslatorTestScopedLibrary> val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a child object. Returns the value from
|
|
|
|
/// CefTranslatorTestScopedLibrary::GetValue(). This tests input of a library-
|
|
|
|
/// side child object type and execution as the parent type.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual int SetChildRawPtrLibrary(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRawPtr<CefTranslatorTestScopedLibraryChild> val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// LIBRARY-SIDE RAWPTR LIST VALUES
|
|
|
|
|
|
|
|
// Test both with and without a typedef.
|
2017-05-17 11:29:28 +02:00
|
|
|
typedef std::vector<CefRawPtr<CefTranslatorTestScopedLibrary>>
|
2017-02-07 22:25:11 +01:00
|
|
|
RawPtrLibraryList;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object list vlaue.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual bool SetRawPtrLibraryList(
|
2017-05-17 11:29:28 +02:00
|
|
|
const std::vector<CefRawPtr<CefTranslatorTestScopedLibrary>>& val,
|
|
|
|
int val1,
|
|
|
|
int val2) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// CLIENT-SIDE RAWPTR VALUES
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object. Returns the value from
|
|
|
|
/// CefTranslatorTestScopedClient::GetValue().
|
|
|
|
/// This tests input and execution of a client-side object type.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int SetRawPtrClient(CefRawPtr<CefTranslatorTestScopedClient> val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a child object. Returns the value from
|
|
|
|
/// CefTranslatorTestScopedClient::GetValue(). This tests input of a client-
|
|
|
|
/// side child object type and execution as the parent type.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual int SetChildRawPtrClient(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRawPtr<CefTranslatorTestScopedClientChild> val) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// CLIENT-SIDE RAWPTR LIST VALUES
|
|
|
|
|
|
|
|
// Test both with and without a typedef.
|
2017-05-17 11:29:28 +02:00
|
|
|
typedef std::vector<CefRawPtr<CefTranslatorTestScopedClient>>
|
2017-02-07 22:25:11 +01:00
|
|
|
RawPtrClientList;
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set an object list vlaue.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
virtual bool SetRawPtrClientList(
|
2017-05-17 11:29:28 +02:00
|
|
|
const std::vector<CefRawPtr<CefTranslatorTestScopedClient>>& val,
|
|
|
|
int val1,
|
|
|
|
int val2) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Library-side test object for RefPtr.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
2017-02-10 00:11:28 +01:00
|
|
|
/*--cef(source=library)--*/
|
2017-02-09 23:07:43 +01:00
|
|
|
class CefTranslatorTestRefPtrLibrary : public CefBaseRefCounted {
|
2017-02-07 22:25:11 +01:00
|
|
|
public:
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Create the test object.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
|
|
|
static CefRefPtr<CefTranslatorTestRefPtrLibrary> Create(int value);
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a value.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int GetValue() = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a value.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual void SetValue(int value) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Library-side child test object for RefPtr.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
2017-02-10 00:11:28 +01:00
|
|
|
/*--cef(source=library)--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
class CefTranslatorTestRefPtrLibraryChild
|
|
|
|
: public CefTranslatorTestRefPtrLibrary {
|
2017-02-07 22:25:11 +01:00
|
|
|
public:
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Create the test object.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
static CefRefPtr<CefTranslatorTestRefPtrLibraryChild> Create(int value,
|
|
|
|
int other_value);
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a value.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int GetOtherValue() = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a value.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual void SetOtherValue(int value) = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Another library-side child test object for RefPtr.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
2017-02-10 00:11:28 +01:00
|
|
|
/*--cef(source=library)--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
class CefTranslatorTestRefPtrLibraryChildChild
|
|
|
|
: public CefTranslatorTestRefPtrLibraryChild {
|
2017-02-07 22:25:11 +01:00
|
|
|
public:
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Create the test object.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
static CefRefPtr<CefTranslatorTestRefPtrLibraryChildChild>
|
|
|
|
Create(int value, int other_value, int other_other_value);
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a value.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int GetOtherOtherValue() = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a value.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual void SetOtherOtherValue(int value) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Client-side test object for RefPtr.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
2017-02-10 00:11:28 +01:00
|
|
|
/*--cef(source=client)--*/
|
2017-02-09 23:07:43 +01:00
|
|
|
class CefTranslatorTestRefPtrClient : public virtual CefBaseRefCounted {
|
2017-02-07 22:25:11 +01:00
|
|
|
public:
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a value.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int GetValue() = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Client-side child test object for RefPtr.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
2017-02-10 00:11:28 +01:00
|
|
|
/*--cef(source=client)--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
class CefTranslatorTestRefPtrClientChild
|
|
|
|
: public CefTranslatorTestRefPtrClient {
|
2017-02-07 22:25:11 +01:00
|
|
|
public:
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a value.
|
2017-02-07 22:25:11 +01:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int GetOtherValue() = 0;
|
2017-02-07 22:25:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Library-side test object for OwnPtr/RawPtr.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-10 00:11:28 +01:00
|
|
|
/*--cef(source=library)--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
class CefTranslatorTestScopedLibrary : public CefBaseScoped {
|
2015-04-26 20:40:01 +02:00
|
|
|
public:
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Create the test object.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
static CefOwnPtr<CefTranslatorTestScopedLibrary> Create(int value);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int GetValue() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual void SetValue(int value) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Library-side child test object for OwnPtr/RawPtr.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-10 00:11:28 +01:00
|
|
|
/*--cef(source=library)--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
class CefTranslatorTestScopedLibraryChild
|
|
|
|
: public CefTranslatorTestScopedLibrary {
|
2015-04-26 20:40:01 +02:00
|
|
|
public:
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Create the test object.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
static CefOwnPtr<CefTranslatorTestScopedLibraryChild> Create(int value,
|
|
|
|
int other_value);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int GetOtherValue() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual void SetOtherValue(int value) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Another library-side child test object for OwnPtr/RawPtr.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-10 00:11:28 +01:00
|
|
|
/*--cef(source=library)--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
class CefTranslatorTestScopedLibraryChildChild
|
|
|
|
: public CefTranslatorTestScopedLibraryChild {
|
2015-04-26 20:40:01 +02:00
|
|
|
public:
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Create the test object.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
static CefOwnPtr<CefTranslatorTestScopedLibraryChildChild>
|
|
|
|
Create(int value, int other_value, int other_other_value);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int GetOtherOtherValue() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Set a value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual void SetOtherOtherValue(int value) = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Client-side test object for OwnPtr/RawPtr.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-10 00:11:28 +01:00
|
|
|
/*--cef(source=client)--*/
|
2017-02-07 22:25:11 +01:00
|
|
|
class CefTranslatorTestScopedClient : public virtual CefBaseScoped {
|
2015-04-26 20:40:01 +02:00
|
|
|
public:
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int GetValue() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Client-side child test object for OwnPtr/RawPtr.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-10 00:11:28 +01:00
|
|
|
/*--cef(source=client)--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
class CefTranslatorTestScopedClientChild
|
|
|
|
: public CefTranslatorTestScopedClient {
|
2015-04-26 20:40:01 +02:00
|
|
|
public:
|
|
|
|
///
|
2022-09-01 04:03:04 +02:00
|
|
|
/// Return a value.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
/*--cef()--*/
|
2017-05-17 11:29:28 +02:00
|
|
|
virtual int GetOtherValue() = 0;
|
2015-04-26 20:40:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_INCLUDE_TEST_CEF_TEST_H_
|