diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-31 19:50:37 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-31 19:50:37 +0000 |
commit | 0298d9c293255381f87e6fe1a6bb2927c4feffb5 (patch) | |
tree | e800bad9edea2ab86461102fb58329e71ad5754e /chrome/browser/extensions | |
parent | 268bdbcb1dc33da206b8ca3155b198aa850575ec (diff) | |
download | chromium_src-0298d9c293255381f87e6fe1a6bb2927c4feffb5.zip chromium_src-0298d9c293255381f87e6fe1a6bb2927c4feffb5.tar.gz chromium_src-0298d9c293255381f87e6fe1a6bb2927c4feffb5.tar.bz2 |
Coverity: Check the return value of ExecuteJavaScriptAndExtractString.
CID=5133
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/159676
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22172 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r-- | chrome/browser/extensions/extension_browsertests_misc.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/extensions/extension_browsertests_misc.cc b/chrome/browser/extensions/extension_browsertests_misc.cc index 6966f54..c3770b0 100644 --- a/chrome/browser/extensions/extension_browsertests_misc.cc +++ b/chrome/browser/extensions/extension_browsertests_misc.cc @@ -219,18 +219,18 @@ static const wchar_t* jscript_error = void GetParsedFeedData(Browser* browser, std::string* feed_title, std::string* item_title, std::string* item_desc, std::string* error) { - ui_test_utils::ExecuteJavaScriptAndExtractString( + ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractString( browser->GetSelectedTabContents()->render_view_host(), L"", - jscript_feed_title, feed_title); - ui_test_utils::ExecuteJavaScriptAndExtractString( + jscript_feed_title, feed_title)); + ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractString( browser->GetSelectedTabContents()->render_view_host(), L"", - jscript_anchor, item_title); - ui_test_utils::ExecuteJavaScriptAndExtractString( + jscript_anchor, item_title)); + ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractString( browser->GetSelectedTabContents()->render_view_host(), L"", - jscript_desc, item_desc); - ui_test_utils::ExecuteJavaScriptAndExtractString( + jscript_desc, item_desc)); + ASSERT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractString( browser->GetSelectedTabContents()->render_view_host(), L"", - jscript_error, error); + jscript_error, error)); } // Tests that we can parse feeds. |