| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/contacts/gdata_contacts_service.h" | 5 #include "chrome/browser/chromeos/contacts/gdata_contacts_service.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 #include "base/time.h" | 11 #include "base/time.h" |
| 12 #include "chrome/browser/chromeos/contacts/contact.pb.h" | 12 #include "chrome/browser/chromeos/contacts/contact.pb.h" |
| 13 #include "chrome/browser/chromeos/contacts/contact_test_util.h" | 13 #include "chrome/browser/chromeos/contacts/contact_test_util.h" |
| 14 #include "chrome/browser/google_apis/auth_service.h" | 14 #include "chrome/browser/google_apis/auth_service.h" |
| 15 #include "chrome/browser/google_apis/test_util.h" | 15 #include "chrome/browser/google_apis/test_util.h" |
| 16 #include "chrome/browser/google_apis/time_util.h" | 16 #include "chrome/browser/google_apis/time_util.h" |
| 17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "chrome/browser/ui/browser.h" | 18 #include "chrome/browser/ui/browser.h" |
| 19 #include "chrome/test/base/in_process_browser_test.h" | 19 #include "chrome/test/base/in_process_browser_test.h" |
| 20 #include "chrome/test/base/testing_profile.h" | 20 #include "chrome/test/base/testing_profile.h" |
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 scoped_ptr<contacts::Contact> contact2(new contacts::Contact); | 336 scoped_ptr<contacts::Contact> contact2(new contacts::Contact); |
| 337 InitContact("http://example.com/2", "2012-06-21T16:20:13.208Z", | 337 InitContact("http://example.com/2", "2012-06-21T16:20:13.208Z", |
| 338 false, "Bob Smith", "Bob", "", "Smith", "", "", | 338 false, "Bob Smith", "Bob", "", "Smith", "", "", |
| 339 contact2.get()); | 339 contact2.get()); |
| 340 EXPECT_EQ(contacts::test::VarContactsToString( | 340 EXPECT_EQ(contacts::test::VarContactsToString( |
| 341 2, contact1.get(), contact2.get()), | 341 2, contact1.get(), contact2.get()), |
| 342 contacts::test::ContactsToString(*contacts)); | 342 contacts::test::ContactsToString(*contacts)); |
| 343 } | 343 } |
| 344 | 344 |
| 345 } // namespace contacts | 345 } // namespace contacts |
| OLD | NEW |