mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Merge revision 449-452 changes:
- Linux: Fix window destruction crash. - Linux: Fix cefclient shutdown crash. - Remove WebURLRequestTest.CANCEL test with WUR_STATE_LOADING due to flakiness. - Linux: Initialize the 'proxy_type' variable to make the compiler happy. git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/963@454 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -218,7 +218,7 @@ void AppGetSettings(CefSettings& settings, CefRefPtr<CefApp>& app)
|
||||
|
||||
// Retrieve command-line proxy configuration, if any.
|
||||
bool has_proxy = false;
|
||||
cef_proxy_type_t proxy_type;
|
||||
cef_proxy_type_t proxy_type = PROXY_TYPE_DIRECT;
|
||||
CefString proxy_config;
|
||||
|
||||
if (g_command_line->HasSwitch(cefclient::kProxyType)) {
|
||||
|
@@ -20,8 +20,7 @@ char szWorkingDir[512]; // The current working directory
|
||||
extern CefRefPtr<ClientHandler> g_handler;
|
||||
|
||||
void destroy(void) {
|
||||
CefShutdown();
|
||||
exit(0);
|
||||
CefQuitMessageLoop();
|
||||
}
|
||||
|
||||
void TerminationSignalHandler(int signatl) {
|
||||
@@ -421,6 +420,8 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
CefRunMessageLoop();
|
||||
|
||||
CefShutdown();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@@ -128,7 +128,7 @@ public:
|
||||
size_t len = contents_.length();
|
||||
test_results_.contentLength = len;
|
||||
#ifdef WEB_URLREQUEST_DEBUG
|
||||
printf("Response: %d - %s\n", len, contents_.c_str());
|
||||
printf("Response: %lu - %s\n", len, contents_.c_str());
|
||||
#endif
|
||||
}
|
||||
TestCompleted();
|
||||
@@ -455,15 +455,14 @@ TEST(WebURLRequestTest, CANCEL)
|
||||
|
||||
cef_weburlrequest_state_t cancelAt[] = {
|
||||
WUR_STATE_STARTED,
|
||||
WUR_STATE_HEADERS_RECEIVED,
|
||||
WUR_STATE_LOADING
|
||||
WUR_STATE_HEADERS_RECEIVED
|
||||
};
|
||||
|
||||
for (unsigned int i=0; i < COUNTOF_(cancelAt); ++i) {
|
||||
TestResults tr;
|
||||
CefRefPtr<BrowserTestHandler> browser = new BrowserForTest(tr, cancelAt[i]);
|
||||
browser->ExecuteTest();
|
||||
EXPECT_TRUE(tr.got_abort);
|
||||
EXPECT_TRUE(tr.got_abort) << "i = " << i;
|
||||
EXPECT_TRUE(tr.got_deleted);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user