| 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_stub.h" | 5 #include "chrome/browser/chromeos/contacts/gdata_contacts_service_stub.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "chrome/browser/chromeos/contacts/contact.pb.h" | 9 #include "chrome/browser/chromeos/contacts/contact.pb.h" |
| 10 #include "chrome/browser/chromeos/contacts/contact_test_util.h" | 10 #include "chrome/browser/chromeos/contacts/contact_test_util.h" |
| 11 #include "chrome/browser/google_apis/time_util.h" | |
| 12 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 #include "google_apis/drive/time_util.h" |
| 13 | 13 |
| 14 using content::BrowserThread; | 14 using content::BrowserThread; |
| 15 | 15 |
| 16 namespace contacts { | 16 namespace contacts { |
| 17 | 17 |
| 18 GDataContactsServiceStub::GDataContactsServiceStub() | 18 GDataContactsServiceStub::GDataContactsServiceStub() |
| 19 : num_download_requests_(0), | 19 : num_download_requests_(0), |
| 20 num_download_requests_with_wrong_timestamps_(0), | 20 num_download_requests_with_wrong_timestamps_(0), |
| 21 download_should_succeed_(true) { | 21 download_should_succeed_(true) { |
| 22 } | 22 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 return; | 55 return; |
| 56 } | 56 } |
| 57 | 57 |
| 58 scoped_ptr<ScopedVector<contacts::Contact> > contacts( | 58 scoped_ptr<ScopedVector<contacts::Contact> > contacts( |
| 59 new ScopedVector<contacts::Contact>()); | 59 new ScopedVector<contacts::Contact>()); |
| 60 contacts::test::CopyContacts(contacts_, contacts.get()); | 60 contacts::test::CopyContacts(contacts_, contacts.get()); |
| 61 success_callback.Run(contacts.Pass()); | 61 success_callback.Run(contacts.Pass()); |
| 62 } | 62 } |
| 63 | 63 |
| 64 } // namespace contacts | 64 } // namespace contacts |
| OLD | NEW |