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

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

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.cc
diff --git a/chrome/browser/chromeos/contacts/contact_test_util.cc b/chrome/browser/chromeos/contacts/contact_test_util.cc
index af375f78e5e4eac6d8a7689fec9bacab4ad54588..73c047fe8e0ebb3f6cfd3d76cadaf68b04be902c 100644
--- a/chrome/browser/chromeos/contacts/contact_test_util.cc
+++ b/chrome/browser/chromeos/contacts/contact_test_util.cc
@@ -12,6 +12,7 @@
#include "base/string_number_conversions.h"
#include "base/string_util.h"
#include "base/time.h"
+#include "chrome/browser/chromeos/contacts/contact_map.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkCanvas.h"
#include "ui/gfx/codec/png_codec.h"
@@ -134,6 +135,15 @@ std::string VarContactsToString(int num_contacts, ...) {
return ContactsToString(contacts);
}
+std::string ContactMapToString(const ContactMap& contact_map) {
+ ContactPointers contacts;
+ for (ContactMap::const_iterator it = contact_map.begin();
+ it != contact_map.end(); ++it) {
+ contacts.push_back(it->second);
+ }
+ return ContactsToString(contacts);
+}
+
void CopyContacts(const ContactPointers& source,
ScopedVector<Contact>* dest) {
DCHECK(dest);

Powered by Google App Engine
This is Rietveld 408576698