From 1d489846ede72980fe4788d5f48ed9e549dc1648 Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Sat, 31 Dec 2011 01:46:46 +0000 Subject: [PATCH] Remove WebURLRequestTest.CANCEL test with WUR_STATE_LOADING due to flakiness. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@451 5089003a-bbd8-11dd-ad1f-f1f9622dbc98 --- tests/unittests/web_urlrequest_unittest.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/unittests/web_urlrequest_unittest.cc b/tests/unittests/web_urlrequest_unittest.cc index 77e5ffd53..1f1dfe2c7 100644 --- a/tests/unittests/web_urlrequest_unittest.cc +++ b/tests/unittests/web_urlrequest_unittest.cc @@ -129,7 +129,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(); @@ -456,15 +456,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 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); }