mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Replace NOTREACHED() with DCHECK(false) in generated files (see #3500)
Restores the old behavior of assertion in Debug build only.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=461cf3d1954bafc2f291894ddf2b366b083bb773$
|
||||
// $hash=7467f59c7417d18d7a8ea7690fce9d01b4855d5c$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/test_server_connection_cpptoc.h"
|
||||
@@ -150,7 +150,7 @@ CefRefPtr<CefTestServerConnection> CefCppToCRefCounted<
|
||||
cef_test_server_connection_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_test_server_connection_t*
|
||||
s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=442e7f211c420aea2bc399024b947f67d83d3a6d$
|
||||
// $hash=3aa25e3d3dcaa8b1499fc4e54dd0cb9d3bb473cb$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/test_server_cpptoc.h"
|
||||
@@ -97,7 +97,7 @@ template <>
|
||||
CefRefPtr<CefTestServer>
|
||||
CefCppToCRefCounted<CefTestServerCppToC, CefTestServer, cef_test_server_t>::
|
||||
UnwrapDerived(CefWrapperType type, cef_test_server_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=d180fbc2710aeb96dc4db266168281c29cc43642$
|
||||
// $hash=786c2d8a0269b342c7c3ee49f5bb337341072d31$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/test_server_handler_cpptoc.h"
|
||||
@@ -81,7 +81,7 @@ CefRefPtr<CefTestServerHandler> CefCppToCRefCounted<
|
||||
CefTestServerHandler,
|
||||
cef_test_server_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_test_server_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=2b8d7a22d62b14176b5e7a9be38c7948544c71b6$
|
||||
// $hash=39e09b21c40f62f1ec2f9685f065682607405666$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/translator_test_cpptoc.h"
|
||||
@@ -1747,7 +1747,7 @@ CefRefPtr<CefTranslatorTest> CefCppToCRefCounted<
|
||||
CefTranslatorTest,
|
||||
cef_translator_test_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_translator_test_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=56384b27dfcbd43965ef7fd5bf521d56fb40766d$
|
||||
// $hash=e94e27d12aa7fa48ea890cb8ab99f2e400d7ff23$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_client_child_cpptoc.h"
|
||||
@@ -84,7 +84,7 @@ CefCppToCRefCounted<CefTranslatorTestRefPtrClientChildCppToC,
|
||||
cef_translator_test_ref_ptr_client_child_t>::
|
||||
UnwrapDerived(CefWrapperType type,
|
||||
cef_translator_test_ref_ptr_client_child_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=c1cde9099d0161a04f31e595bde4c6466b490d8b$
|
||||
// $hash=5c0280db7af6bc6332f308b53a3189d1e64b63d0$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_client_cpptoc.h"
|
||||
@@ -63,7 +63,7 @@ CefCppToCRefCounted<CefTranslatorTestRefPtrClientCppToC,
|
||||
return CefTranslatorTestRefPtrClientChildCppToC::Unwrap(
|
||||
reinterpret_cast<cef_translator_test_ref_ptr_client_child_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=178ed72ca63c4bceca77fbec9581f6d36e6dbaa3$
|
||||
// $hash=09d1f7c2030dd94ea04b11428eaa2820365c39b0$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_child_cpptoc.h"
|
||||
@@ -192,7 +192,7 @@ CefCppToCRefCounted<CefTranslatorTestRefPtrLibraryChildChildCppToC,
|
||||
cef_translator_test_ref_ptr_library_child_child_t>::
|
||||
UnwrapDerived(CefWrapperType type,
|
||||
cef_translator_test_ref_ptr_library_child_child_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=f1156abd7d5a26d954f9c4de9f1666be7e2ab0ce$
|
||||
// $hash=77ac3c6f92cae7e91d7c1961c302fcf4da441cb7$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_cpptoc.h"
|
||||
@@ -143,7 +143,7 @@ CefCppToCRefCounted<CefTranslatorTestRefPtrLibraryChildCppToC,
|
||||
reinterpret_cast<cef_translator_test_ref_ptr_library_child_child_t*>(
|
||||
s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=23a27436f99688bd141b939ef756cab4d47fe857$
|
||||
// $hash=a7585041fd58edc7c8a2760cf360cc3abcf90853$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_cpptoc.h"
|
||||
@@ -102,7 +102,7 @@ CefCppToCRefCounted<CefTranslatorTestRefPtrLibraryCppToC,
|
||||
reinterpret_cast<cef_translator_test_ref_ptr_library_child_child_t*>(
|
||||
s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=2444cafe9c59f007ea908c8e43a8f02376d57011$
|
||||
// $hash=caeeb7277830a5e9a81ba96a9385f65f53e1983f$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/translator_test_scoped_client_child_cpptoc.h"
|
||||
@@ -77,7 +77,7 @@ CefCppToCScoped<CefTranslatorTestScopedClientChildCppToC,
|
||||
cef_translator_test_scoped_client_child_t>::
|
||||
UnwrapDerivedOwn(CefWrapperType type,
|
||||
cef_translator_test_scoped_client_child_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return CefOwnPtr<CefTranslatorTestScopedClientChild>();
|
||||
}
|
||||
|
||||
@@ -88,7 +88,7 @@ CefCppToCScoped<CefTranslatorTestScopedClientChildCppToC,
|
||||
cef_translator_test_scoped_client_child_t>::
|
||||
UnwrapDerivedRaw(CefWrapperType type,
|
||||
cef_translator_test_scoped_client_child_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=d19e196c418e6325718ada2866d37f6ee142d606$
|
||||
// $hash=8b65a39b9871e8185e8923ef48a54dd38e42af95$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/translator_test_scoped_client_cpptoc.h"
|
||||
@@ -58,7 +58,7 @@ CefCppToCScoped<CefTranslatorTestScopedClientCppToC,
|
||||
return CefTranslatorTestScopedClientChildCppToC::UnwrapOwn(
|
||||
reinterpret_cast<cef_translator_test_scoped_client_child_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return CefOwnPtr<CefTranslatorTestScopedClient>();
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ CefCppToCScoped<CefTranslatorTestScopedClientCppToC,
|
||||
return CefTranslatorTestScopedClientChildCppToC::UnwrapRaw(
|
||||
reinterpret_cast<cef_translator_test_scoped_client_child_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=29014eb7cb86c46ed68a938cc862a1eed9335ee3$
|
||||
// $hash=4208fa6b25929be4a48ba1beefc454a08fc22759$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/translator_test_scoped_library_child_child_cpptoc.h"
|
||||
@@ -174,7 +174,7 @@ CefCppToCScoped<CefTranslatorTestScopedLibraryChildChildCppToC,
|
||||
cef_translator_test_scoped_library_child_child_t>::
|
||||
UnwrapDerivedOwn(CefWrapperType type,
|
||||
cef_translator_test_scoped_library_child_child_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return CefOwnPtr<CefTranslatorTestScopedLibraryChildChild>();
|
||||
}
|
||||
|
||||
@@ -185,7 +185,7 @@ CefCppToCScoped<CefTranslatorTestScopedLibraryChildChildCppToC,
|
||||
cef_translator_test_scoped_library_child_child_t>::
|
||||
UnwrapDerivedRaw(CefWrapperType type,
|
||||
cef_translator_test_scoped_library_child_child_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=3fb60285776c7480d0909430c04b3fe5a0c257be$
|
||||
// $hash=f6f6e03a419a412c7c4f15c252fef53c543c5397$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/translator_test_scoped_library_child_cpptoc.h"
|
||||
@@ -129,7 +129,7 @@ CefCppToCScoped<CefTranslatorTestScopedLibraryChildCppToC,
|
||||
return CefTranslatorTestScopedLibraryChildChildCppToC::UnwrapOwn(
|
||||
reinterpret_cast<cef_translator_test_scoped_library_child_child_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return CefOwnPtr<CefTranslatorTestScopedLibraryChild>();
|
||||
}
|
||||
|
||||
@@ -144,7 +144,7 @@ CefCppToCScoped<CefTranslatorTestScopedLibraryChildCppToC,
|
||||
return CefTranslatorTestScopedLibraryChildChildCppToC::UnwrapRaw(
|
||||
reinterpret_cast<cef_translator_test_scoped_library_child_child_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
@@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=9aeefcb3a387576c2a7ef206b9bcf57ac9c7f060$
|
||||
// $hash=6bcea51c7388efe763a5e5e1afe9db461bff777d$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/test/translator_test_scoped_library_cpptoc.h"
|
||||
@@ -92,7 +92,7 @@ CefCppToCScoped<CefTranslatorTestScopedLibraryCppToC,
|
||||
return CefTranslatorTestScopedLibraryChildChildCppToC::UnwrapOwn(
|
||||
reinterpret_cast<cef_translator_test_scoped_library_child_child_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return CefOwnPtr<CefTranslatorTestScopedLibrary>();
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ CefCppToCScoped<CefTranslatorTestScopedLibraryCppToC,
|
||||
return CefTranslatorTestScopedLibraryChildChildCppToC::UnwrapRaw(
|
||||
reinterpret_cast<cef_translator_test_scoped_library_child_child_t*>(s));
|
||||
}
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
DCHECK(false) << "Unexpected class type: " << type;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user