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/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
11 #include "base/time/time.h" | 11 #include "base/time/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/dummy_auth_service.h" | |
15 #include "chrome/browser/google_apis/test_util.h" | |
16 #include "chrome/browser/google_apis/time_util.h" | |
17 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
18 #include "chrome/test/base/in_process_browser_test.h" | 15 #include "chrome/test/base/in_process_browser_test.h" |
19 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/test/test_browser_thread.h" | 17 #include "content/public/test/test_browser_thread.h" |
21 #include "content/public/test/test_utils.h" | 18 #include "content/public/test/test_utils.h" |
| 19 #include "google_apis/drive/dummy_auth_service.h" |
| 20 #include "google_apis/drive/test_util.h" |
| 21 #include "google_apis/drive/time_util.h" |
22 #include "net/test/embedded_test_server/embedded_test_server.h" | 22 #include "net/test/embedded_test_server/embedded_test_server.h" |
23 #include "net/test/embedded_test_server/http_request.h" | 23 #include "net/test/embedded_test_server/http_request.h" |
24 #include "net/test/embedded_test_server/http_response.h" | 24 #include "net/test/embedded_test_server/http_response.h" |
25 #include "net/url_request/url_request_test_util.h" | 25 #include "net/url_request/url_request_test_util.h" |
26 #include "testing/gtest/include/gtest/gtest.h" | 26 #include "testing/gtest/include/gtest/gtest.h" |
27 #include "ui/gfx/size.h" | 27 #include "ui/gfx/size.h" |
28 | 28 |
29 using content::BrowserThread; | 29 using content::BrowserThread; |
30 | 30 |
31 namespace contacts { | 31 namespace contacts { |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 scoped_ptr<contacts::Contact> contact2(new contacts::Contact); | 322 scoped_ptr<contacts::Contact> contact2(new contacts::Contact); |
323 InitContact("http://example.com/2", "2012-06-21T16:20:13.208Z", | 323 InitContact("http://example.com/2", "2012-06-21T16:20:13.208Z", |
324 false, "Bob Smith", "Bob", "", "Smith", "", "", | 324 false, "Bob Smith", "Bob", "", "Smith", "", "", |
325 contact2.get()); | 325 contact2.get()); |
326 EXPECT_EQ(contacts::test::VarContactsToString( | 326 EXPECT_EQ(contacts::test::VarContactsToString( |
327 2, contact1.get(), contact2.get()), | 327 2, contact1.get(), contact2.get()), |
328 contacts::test::ContactsToString(*contacts)); | 328 contacts::test::ContactsToString(*contacts)); |
329 } | 329 } |
330 | 330 |
331 } // namespace contacts | 331 } // namespace contacts |
OLD | NEW |