Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: components/sync/core_impl/attachments/attachment_downloader_impl_unittest.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/sync/core/attachments/attachment_downloader_impl.h" 5 #include "components/sync/core/attachments/attachment_downloader_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 19 matching lines...) Expand all
30 30
31 namespace syncer { 31 namespace syncer {
32 32
33 namespace { 33 namespace {
34 34
35 const char kAccountId[] = "attachments@gmail.com"; 35 const char kAccountId[] = "attachments@gmail.com";
36 const char kAccessToken[] = "access.token"; 36 const char kAccessToken[] = "access.token";
37 const char kAttachmentServerUrl[] = "http://attachments.com/"; 37 const char kAttachmentServerUrl[] = "http://attachments.com/";
38 const char kAttachmentContent[] = "attachment.content"; 38 const char kAttachmentContent[] = "attachment.content";
39 const char kStoreBirthday[] = "z00000000-0000-007b-0000-0000000004d2"; 39 const char kStoreBirthday[] = "z00000000-0000-007b-0000-0000000004d2";
40 const ModelType kModelType = ModelType::ARTICLES; 40 const syncer::ModelType kModelType = syncer::ModelType::ARTICLES;
41 41
42 // MockOAuth2TokenService remembers last request for access token and verifies 42 // MockOAuth2TokenService remembers last request for access token and verifies
43 // that only one request is active at a time. 43 // that only one request is active at a time.
44 // Call RespondToAccessTokenRequest to respond to it. 44 // Call RespondToAccessTokenRequest to respond to it.
45 class MockOAuth2TokenService : public FakeOAuth2TokenService { 45 class MockOAuth2TokenService : public FakeOAuth2TokenService {
46 public: 46 public:
47 MockOAuth2TokenService() : num_invalidate_token_(0) {} 47 MockOAuth2TokenService() : num_invalidate_token_(0) {}
48 48
49 ~MockOAuth2TokenService() override {} 49 ~MockOAuth2TokenService() override {}
50 50
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 raw += "\n"; 528 raw += "\n";
529 std::replace(raw.begin(), raw.end(), '\n', '\0'); 529 std::replace(raw.begin(), raw.end(), '\n', '\0');
530 scoped_refptr<net::HttpResponseHeaders> headers( 530 scoped_refptr<net::HttpResponseHeaders> headers(
531 new net::HttpResponseHeaders(raw)); 531 new net::HttpResponseHeaders(raw));
532 uint32_t extracted; 532 uint32_t extracted;
533 ASSERT_FALSE( 533 ASSERT_FALSE(
534 AttachmentDownloaderImpl::ExtractCrc32c(headers.get(), &extracted)); 534 AttachmentDownloaderImpl::ExtractCrc32c(headers.get(), &extracted));
535 } 535 }
536 536
537 } // namespace syncer 537 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/core/write_transaction.cc ('k') | components/sync/core_impl/attachments/attachment_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698