Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Unified Diff: chrome/browser/chromeos/contacts/contact_test_util.h

Issue 10905033: contacts: Add ContactMap class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apply review feedback Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/contacts/contact_test_util.h
diff --git a/chrome/browser/chromeos/contacts/contact_test_util.h b/chrome/browser/chromeos/contacts/contact_test_util.h
index ac453e6feed1b346d7b0da8e6c5452e1559617b5..a16d946e8cebd9ac48d52b2a614904eb8928106c 100644
--- a/chrome/browser/chromeos/contacts/contact_test_util.h
+++ b/chrome/browser/chromeos/contacts/contact_test_util.h
@@ -12,9 +12,11 @@
#include "ui/gfx/size.h"
namespace contacts {
-namespace test {
typedef std::vector<const Contact*> ContactPointers;
+class ContactMap;
+
+namespace test {
// Returns a string containing the information stored in |contact|. The same
// string will be returned for functionally-equivalent contacts (e.g. ones
@@ -30,6 +32,9 @@ std::string ContactsToString(const ScopedVector<Contact>& contacts);
// const Contact* arguments.
std::string VarContactsToString(int num_contacts, ...);
+// Like ContactsToStrings(), but takes a ContactMap as input.
+std::string ContactMapToString(const ContactMap& contact_map);
+
// Saves copies of all contacts in |source| to |dest|.
void CopyContacts(const ContactPointers& source,
ScopedVector<Contact>* dest);

Powered by Google App Engine
This is Rietveld 408576698