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

Unified Diff: sync/internal_api/attachments/attachment_service_proxy_unittest.cc

Issue 436373002: Move non-API code out of sync/api/attachments/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Apply CR feedback. Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: sync/internal_api/attachments/attachment_service_proxy_unittest.cc
diff --git a/sync/api/attachments/attachment_service_proxy_unittest.cc b/sync/internal_api/attachments/attachment_service_proxy_unittest.cc
similarity index 95%
rename from sync/api/attachments/attachment_service_proxy_unittest.cc
rename to sync/internal_api/attachments/attachment_service_proxy_unittest.cc
index d000f83f157a342bb57c10d2104fadd72992cb39..545998dd39339fb721d436aff528f4226c7a5868 100644
--- a/sync/api/attachments/attachment_service_proxy_unittest.cc
+++ b/sync/internal_api/attachments/attachment_service_proxy_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sync/api/attachments/attachment_service_proxy.h"
+#include "sync/internal_api/public/attachments/attachment_service_proxy.h"
#include "base/bind.h"
#include "base/memory/ref_counted_memory.h"
@@ -14,8 +14,7 @@
#include "base/threading/non_thread_safe.h"
#include "base/threading/thread.h"
#include "sync/api/attachments/attachment.h"
-#include "sync/api/attachments/attachment_service.h"
-#include "sync/api/sync_data.h"
+#include "sync/internal_api/public/attachments/attachment_service.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/protocol/sync.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -101,11 +100,6 @@ class AttachmentServiceProxyTest : public testing::Test,
proxy.reset(new AttachmentServiceProxy(stub_thread->message_loop_proxy(),
stub->AsWeakPtr()));
- sync_data =
- SyncData::CreateLocalData("tag", "title", sync_pb::EntitySpecifics());
- sync_data_delete =
- SyncData::CreateLocalDelete("tag", syncer::PREFERENCES);
-
callback_get_or_download =
base::Bind(&AttachmentServiceProxyTest::IncrementGetOrDownload,
base::Unretained(this));
@@ -161,9 +155,6 @@ class AttachmentServiceProxyTest : public testing::Test,
scoped_ptr<StubAttachmentService> stub;
scoped_ptr<AttachmentServiceProxy> proxy;
- SyncData sync_data;
- SyncData sync_data_delete;
-
AttachmentService::GetOrDownloadCallback callback_get_or_download;
AttachmentService::DropCallback callback_drop;
AttachmentService::StoreCallback callback_store;

Powered by Google App Engine
This is Rietveld 408576698