summaryrefslogtreecommitdiffstats
path: root/chrome/browser/password_manager
diff options
context:
space:
mode:
authorrsimha@chromium.org <rsimha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-23 00:13:41 +0000
committerrsimha@chromium.org <rsimha@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-23 00:13:41 +0000
commit84a748404be47c29f78a6666bdccd345aad48e58 (patch)
tree591805cc683b5ddc2a3eb694c8199d4eee80efb4 /chrome/browser/password_manager
parent819afbe193bc16d5b69f51fbead19c96f3a4bc91 (diff)
downloadchromium_src-84a748404be47c29f78a6666bdccd345aad48e58.zip
chromium_src-84a748404be47c29f78a6666bdccd345aad48e58.tar.gz
chromium_src-84a748404be47c29f78a6666bdccd345aad48e58.tar.bz2
Failure logging for Passwords sync integration tests
This patch adds some meaningful failure logging to the passwords sync integration tests that should help debug cases where all sync profiles do not end up with the correct set of password forms after a sync cycle. BUG=77993, 87185 TEST=sync_integration_tests Review URL: http://codereview.chromium.org/7237003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90139 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/password_manager')
-rw-r--r--chrome/browser/password_manager/password_form_data.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/password_manager/password_form_data.h b/chrome/browser/password_manager/password_form_data.h
index 8b3d248..f48d0c8 100644
--- a/chrome/browser/password_manager/password_form_data.h
+++ b/chrome/browser/password_manager/password_form_data.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,6 +6,8 @@
#define CHROME_BROWSER_PASSWORD_MANAGER_PASSWORD_FORM_DATA_H_
#pragma once
+#include <ostream>
+
#include "testing/gmock/include/gmock/gmock.h"
#include "webkit/glue/password_form.h"
@@ -41,6 +43,11 @@ bool ContainsSamePasswordForms(
std::vector<webkit_glue::PasswordForm>& first,
std::vector<webkit_glue::PasswordForm>& second);
+// Pretty-prints the contents of a PasswordForm.
+// TODO(sync): This file must eventually be refactored away -- crbug.com/87185.
+std::ostream& operator<<(std::ostream& os,
+ const webkit_glue::PasswordForm& form);
+
// This gmock matcher is used to check that the |arg| contains exactly the same
// PasswordForms as |forms|, regardless of order.
MATCHER_P(ContainsAllPasswordForms, forms, "") {