Enable leak detection for translator test classes (issue #2090)

This commit is contained in:
Marshall Greenblatt 2017-02-09 18:11:28 -05:00
parent 0afcb82ee6
commit 0a62a4dca8
3 changed files with 75 additions and 11 deletions

View File

@ -83,7 +83,7 @@ class CefTranslatorTestScopedLibraryChild;
///
// Class for testing all of the possible data transfer types.
///
/*--cef(source=library,no_debugct_check)--*/
/*--cef(source=library)--*/
class CefTranslatorTest : public CefBaseRefCounted {
public:
///
@ -610,7 +610,7 @@ class CefTranslatorTest : public CefBaseRefCounted {
///
// Library-side test object for RefPtr.
///
/*--cef(source=library,no_debugct_check)--*/
/*--cef(source=library)--*/
class CefTranslatorTestRefPtrLibrary : public CefBaseRefCounted {
public:
///
@ -635,7 +635,7 @@ class CefTranslatorTestRefPtrLibrary : public CefBaseRefCounted {
///
// Library-side child test object for RefPtr.
///
/*--cef(source=library,no_debugct_check)--*/
/*--cef(source=library)--*/
class CefTranslatorTestRefPtrLibraryChild :
public CefTranslatorTestRefPtrLibrary {
public:
@ -663,7 +663,7 @@ class CefTranslatorTestRefPtrLibraryChild :
///
// Another library-side child test object for RefPtr.
///
/*--cef(source=library,no_debugct_check)--*/
/*--cef(source=library)--*/
class CefTranslatorTestRefPtrLibraryChildChild :
public CefTranslatorTestRefPtrLibraryChild {
public:
@ -692,7 +692,7 @@ class CefTranslatorTestRefPtrLibraryChildChild :
///
// Client-side test object for RefPtr.
///
/*--cef(source=client,no_debugct_check)--*/
/*--cef(source=client)--*/
class CefTranslatorTestRefPtrClient : public virtual CefBaseRefCounted {
public:
///
@ -705,7 +705,7 @@ class CefTranslatorTestRefPtrClient : public virtual CefBaseRefCounted {
///
// Client-side child test object for RefPtr.
///
/*--cef(source=client,no_debugct_check)--*/
/*--cef(source=client)--*/
class CefTranslatorTestRefPtrClientChild :
public CefTranslatorTestRefPtrClient {
public:
@ -720,7 +720,7 @@ class CefTranslatorTestRefPtrClientChild :
///
// Library-side test object for OwnPtr/RawPtr.
///
/*--cef(source=library,no_debugct_check)--*/
/*--cef(source=library)--*/
class CefTranslatorTestScopedLibrary : public CefBaseScoped {
public:
///
@ -745,7 +745,7 @@ class CefTranslatorTestScopedLibrary : public CefBaseScoped {
///
// Library-side child test object for OwnPtr/RawPtr.
///
/*--cef(source=library,no_debugct_check)--*/
/*--cef(source=library)--*/
class CefTranslatorTestScopedLibraryChild :
public CefTranslatorTestScopedLibrary {
public:
@ -773,7 +773,7 @@ class CefTranslatorTestScopedLibraryChild :
///
// Another library-side child test object for OwnPtr/RawPtr.
///
/*--cef(source=library,no_debugct_check)--*/
/*--cef(source=library)--*/
class CefTranslatorTestScopedLibraryChildChild :
public CefTranslatorTestScopedLibraryChild {
public:
@ -802,7 +802,7 @@ class CefTranslatorTestScopedLibraryChildChild :
///
// Client-side test object for OwnPtr/RawPtr.
///
/*--cef(source=client,no_debugct_check)--*/
/*--cef(source=client)--*/
class CefTranslatorTestScopedClient : public virtual CefBaseScoped {
public:
///
@ -815,7 +815,7 @@ class CefTranslatorTestScopedClient : public virtual CefBaseScoped {
///
// Client-side child test object for OwnPtr/RawPtr.
///
/*--cef(source=client,no_debugct_check)--*/
/*--cef(source=client)--*/
class CefTranslatorTestScopedClientChild :
public CefTranslatorTestScopedClient {
public:

View File

@ -85,6 +85,13 @@
#include "libcef_dll/cpptoc/task_runner_cpptoc.h"
#include "libcef_dll/cpptoc/views/textfield_cpptoc.h"
#include "libcef_dll/cpptoc/thread_cpptoc.h"
#include "libcef_dll/cpptoc/test/translator_test_cpptoc.h"
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_cpptoc.h"
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_cpptoc.h"
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_child_cpptoc.h"
#include "libcef_dll/cpptoc/test/translator_test_scoped_library_cpptoc.h"
#include "libcef_dll/cpptoc/test/translator_test_scoped_library_child_cpptoc.h"
#include "libcef_dll/cpptoc/test/translator_test_scoped_library_child_child_cpptoc.h"
#include "libcef_dll/cpptoc/urlrequest_cpptoc.h"
#include "libcef_dll/cpptoc/v8context_cpptoc.h"
#include "libcef_dll/cpptoc/v8exception_cpptoc.h"
@ -144,6 +151,10 @@
#include "libcef_dll/ctocpp/string_visitor_ctocpp.h"
#include "libcef_dll/ctocpp/task_ctocpp.h"
#include "libcef_dll/ctocpp/views/textfield_delegate_ctocpp.h"
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_client_ctocpp.h"
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_client_child_ctocpp.h"
#include "libcef_dll/ctocpp/test/translator_test_scoped_client_ctocpp.h"
#include "libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.h"
#include "libcef_dll/ctocpp/urlrequest_client_ctocpp.h"
#include "libcef_dll/ctocpp/v8accessor_ctocpp.h"
#include "libcef_dll/ctocpp/v8handler_ctocpp.h"
@ -328,6 +339,27 @@ CEF_EXPORT void cef_shutdown() {
DCHECK(base::AtomicRefCountIsZero(&CefTextfieldCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(&CefTextfieldDelegateCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(&CefThreadCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(&CefTranslatorTestCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestRefPtrClientCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestRefPtrClientChildCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestRefPtrLibraryChildChildCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestRefPtrLibraryChildCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestRefPtrLibraryCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestScopedClientCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestScopedClientChildCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestScopedLibraryChildChildCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestScopedLibraryChildCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestScopedLibraryCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(&CefURLRequestClientCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(&CefURLRequestCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(&CefV8AccessorCToCpp::DebugObjCt));

View File

@ -83,6 +83,10 @@
#include "libcef_dll/cpptoc/string_visitor_cpptoc.h"
#include "libcef_dll/cpptoc/task_cpptoc.h"
#include "libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h"
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_client_cpptoc.h"
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_client_child_cpptoc.h"
#include "libcef_dll/cpptoc/test/translator_test_scoped_client_cpptoc.h"
#include "libcef_dll/cpptoc/test/translator_test_scoped_client_child_cpptoc.h"
#include "libcef_dll/cpptoc/urlrequest_client_cpptoc.h"
#include "libcef_dll/cpptoc/v8accessor_cpptoc.h"
#include "libcef_dll/cpptoc/v8handler_cpptoc.h"
@ -139,6 +143,13 @@
#include "libcef_dll/ctocpp/task_runner_ctocpp.h"
#include "libcef_dll/ctocpp/views/textfield_ctocpp.h"
#include "libcef_dll/ctocpp/thread_ctocpp.h"
#include "libcef_dll/ctocpp/test/translator_test_ctocpp.h"
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.h"
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_ctocpp.h"
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_child_ctocpp.h"
#include "libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h"
#include "libcef_dll/ctocpp/test/translator_test_scoped_library_child_ctocpp.h"
#include "libcef_dll/ctocpp/test/translator_test_scoped_library_child_child_ctocpp.h"
#include "libcef_dll/ctocpp/urlrequest_ctocpp.h"
#include "libcef_dll/ctocpp/v8context_ctocpp.h"
#include "libcef_dll/ctocpp/v8exception_ctocpp.h"
@ -320,6 +331,27 @@ CEF_GLOBAL void CefShutdown() {
DCHECK(base::AtomicRefCountIsZero(&CefTextfieldCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(&CefTextfieldDelegateCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(&CefThreadCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(&CefTranslatorTestCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestRefPtrClientChildCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestRefPtrClientCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestRefPtrLibraryCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestRefPtrLibraryChildCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestRefPtrLibraryChildChildCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestScopedClientChildCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestScopedClientCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestScopedLibraryCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestScopedLibraryChildCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(
&CefTranslatorTestScopedLibraryChildChildCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(&CefURLRequestCToCpp::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(&CefURLRequestClientCppToC::DebugObjCt));
DCHECK(base::AtomicRefCountIsZero(&CefV8AccessorCppToC::DebugObjCt));