| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "sync/internal_api/public/attachments/attachment_downloader_impl.h" | 5 #include "sync/internal_api/public/attachments/attachment_downloader_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include <map> | 9 #include <map> |
| 8 | 10 |
| 9 #include "base/bind.h" | 11 #include "base/bind.h" |
| 10 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 11 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 12 #include "base/run_loop.h" | 14 #include "base/run_loop.h" |
| 13 #include "base/test/histogram_tester.h" | 15 #include "base/test/histogram_tester.h" |
| 14 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
| 15 #include "google_apis/gaia/fake_oauth2_token_service.h" | 17 #include "google_apis/gaia/fake_oauth2_token_service.h" |
| 16 #include "google_apis/gaia/gaia_constants.h" | 18 #include "google_apis/gaia/gaia_constants.h" |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 raw += "\n"; | 532 raw += "\n"; |
| 531 std::replace(raw.begin(), raw.end(), '\n', '\0'); | 533 std::replace(raw.begin(), raw.end(), '\n', '\0'); |
| 532 scoped_refptr<net::HttpResponseHeaders> headers( | 534 scoped_refptr<net::HttpResponseHeaders> headers( |
| 533 new net::HttpResponseHeaders(raw)); | 535 new net::HttpResponseHeaders(raw)); |
| 534 uint32_t extracted; | 536 uint32_t extracted; |
| 535 ASSERT_FALSE( | 537 ASSERT_FALSE( |
| 536 AttachmentDownloaderImpl::ExtractCrc32c(headers.get(), &extracted)); | 538 AttachmentDownloaderImpl::ExtractCrc32c(headers.get(), &extracted)); |
| 537 } | 539 } |
| 538 | 540 |
| 539 } // namespace syncer | 541 } // namespace syncer |
| OLD | NEW |