summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-29 19:37:22 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-29 19:37:22 +0000
commit6d23345cef07734f9be3b3c13765b3bbeee5b9e8 (patch)
treea538952c743a2d11caeb5747edf7d4236246fac7 /chrome
parentb492c117d70294e8c418b304b16620e4a6e88f0e (diff)
downloadchromium_src-6d23345cef07734f9be3b3c13765b3bbeee5b9e8.zip
chromium_src-6d23345cef07734f9be3b3c13765b3bbeee5b9e8.tar.gz
chromium_src-6d23345cef07734f9be3b3c13765b3bbeee5b9e8.tar.bz2
Coverity: Initialize got_thumbnail_callback_, query_url_success_, and redirect_query_success_ in the constructor.
CID=1653 BUG=none TEST=none Review URL: http://codereview.chromium.org/251031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27525 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/history/history_unittest.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/chrome/browser/history/history_unittest.cc b/chrome/browser/history/history_unittest.cc
index 23463440..29f73a1 100644
--- a/chrome/browser/history/history_unittest.cc
+++ b/chrome/browser/history/history_unittest.cc
@@ -109,7 +109,12 @@ class BackendDelegate : public HistoryBackend::Delegate {
// HistoryBackend to work.
class HistoryTest : public testing::Test {
public:
- HistoryTest() : history_service_(NULL), db_(NULL) {
+ HistoryTest()
+ : history_service_(NULL),
+ got_thumbnail_callback_(false),
+ redirect_query_success_(false),
+ query_url_success_(false),
+ db_(NULL) {
}
~HistoryTest() {
}
@@ -751,7 +756,7 @@ TEST(HistoryProfileTest, TypicalProfileVersion) {
namespace {
// Use this dummy value to scope the page IDs we give history.
-static const void* kAddArgsScope = (void*)0x12345678;
+static const void* kAddArgsScope = reinterpret_cast<void*>(0x12345678);
// Creates a new HistoryAddPageArgs object for sending to the history database
// with reasonable defaults and the given NULL-terminated URL string. The