summaryrefslogtreecommitdiffstats
path: root/chrome/browser/in_process_webkit
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-16 08:39:54 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-16 08:39:54 +0000
commit6fd3535a1593f4c73c938c7aa7e35eb976ccf280 (patch)
tree9a67ff8878ad611c4a35e728a613c451bb25008f /chrome/browser/in_process_webkit
parentb22b5167bd0a7494a78195d04b5a77ff185de5ae (diff)
downloadchromium_src-6fd3535a1593f4c73c938c7aa7e35eb976ccf280.zip
chromium_src-6fd3535a1593f4c73c938c7aa7e35eb976ccf280.tar.gz
chromium_src-6fd3535a1593f4c73c938c7aa7e35eb976ccf280.tar.bz2
[GTTF] Make automation framework more solid by making sure that
important return values are not ignored. The macro used here, WARN_UNUSED_RESULT, takes effect only for GCC, but that's enough since we have bots for all platforms. Adding these warnings already detected some cases where a return value was ignored. In some of them the test was trying to get the information about success "some other way", in some it could sometimes confuse test failure with test success. TEST=ui_tests BUG=none Review URL: http://codereview.chromium.org/948002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41696 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/in_process_webkit')
-rw-r--r--chrome/browser/in_process_webkit/dom_storage_uitest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/in_process_webkit/dom_storage_uitest.cc b/chrome/browser/in_process_webkit/dom_storage_uitest.cc
index 8b8a66d..88cfa871 100644
--- a/chrome/browser/in_process_webkit/dom_storage_uitest.cc
+++ b/chrome/browser/in_process_webkit/dom_storage_uitest.cc
@@ -69,7 +69,7 @@ class DOMStorageTest : public UILayoutTest {
ASSERT_TRUE(tab.get());
GURL url = GetTestUrl(L"layout_tests", L"clear_dom_storage.html");
- tab->SetCookie(url, "");
+ ASSERT_TRUE(tab->SetCookie(url, ""));
ASSERT_TRUE(tab->NavigateToURL(url));
WaitUntilCookieNonEmpty(tab.get(), url, "cleared", kTestIntervalMs,