| 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);
|
|
|