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

Side by Side Diff: components/sync/engine_impl/attachments/attachment_uploader_impl_unittest.cc

Issue 2401223002: [Sync] Renaming sync/api* to sync/model*. (Closed)
Patch Set: Missed a comment in a DEPS file, and rebasing. 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/engine_impl/attachments/attachment_uploader_impl.h" 5 #include "components/sync/engine_impl/attachments/attachment_uploader_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/location.h" 12 #include "base/location.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/ref_counted_memory.h" 14 #include "base/memory/ref_counted_memory.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "base/run_loop.h" 16 #include "base/run_loop.h"
17 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
18 #include "base/strings/string_number_conversions.h" 18 #include "base/strings/string_number_conversions.h"
19 #include "base/strings/stringprintf.h" 19 #include "base/strings/stringprintf.h"
20 #include "base/synchronization/lock.h" 20 #include "base/synchronization/lock.h"
21 #include "base/test/histogram_tester.h" 21 #include "base/test/histogram_tester.h"
22 #include "base/threading/thread.h" 22 #include "base/threading/thread.h"
23 #include "base/threading/thread_task_runner_handle.h" 23 #include "base/threading/thread_task_runner_handle.h"
24 #include "components/sync/api/attachments/attachment.h"
25 #include "components/sync/engine/attachments/attachment_util.h" 24 #include "components/sync/engine/attachments/attachment_util.h"
25 #include "components/sync/model/attachments/attachment.h"
26 #include "components/sync/protocol/sync.pb.h" 26 #include "components/sync/protocol/sync.pb.h"
27 #include "google_apis/gaia/fake_oauth2_token_service.h" 27 #include "google_apis/gaia/fake_oauth2_token_service.h"
28 #include "google_apis/gaia/gaia_constants.h" 28 #include "google_apis/gaia/gaia_constants.h"
29 #include "net/http/http_status_code.h" 29 #include "net/http/http_status_code.h"
30 #include "net/test/embedded_test_server/embedded_test_server.h" 30 #include "net/test/embedded_test_server/embedded_test_server.h"
31 #include "net/test/embedded_test_server/http_request.h" 31 #include "net/test/embedded_test_server/http_request.h"
32 #include "net/test/embedded_test_server/http_response.h" 32 #include "net/test/embedded_test_server/http_response.h"
33 #include "net/url_request/url_request_test_util.h" 33 #include "net/url_request/url_request_test_util.h"
34 #include "testing/gmock/include/gmock/gmock-matchers.h" 34 #include "testing/gmock/include/gmock/gmock-matchers.h"
35 #include "testing/gtest/include/gtest/gtest.h" 35 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 scoped_refptr<base::RefCountedString> hello_world(new base::RefCountedString); 663 scoped_refptr<base::RefCountedString> hello_world(new base::RefCountedString);
664 hello_world->data() = "hello world"; 664 hello_world->data() = "hello world";
665 EXPECT_EQ("yZRlqg==", AttachmentUploaderImpl::FormatCrc32cHash( 665 EXPECT_EQ("yZRlqg==", AttachmentUploaderImpl::FormatCrc32cHash(
666 ComputeCrc32c(hello_world))); 666 ComputeCrc32c(hello_world)));
667 } 667 }
668 668
669 // TODO(maniscalco): Add test case for when we are uploading an attachment that 669 // TODO(maniscalco): Add test case for when we are uploading an attachment that
670 // already exists. 409 Conflict? (bug 379825) 670 // already exists. 409 Conflict? (bug 379825)
671 671
672 } // namespace syncer 672 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine_impl/attachments/attachment_uploader_impl.cc ('k') | components/sync/model/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698