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

Unified Diff: sync/api/attachments/attachment_service_proxy_for_test.cc

Issue 213003004: Replace calls to 3-arg SyncData::CreateLocalData with 5-arg version. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@syncapi
Patch Set: Merge with master. Created 6 years, 9 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
« no previous file with comments | « sync/api/attachments/attachment_service_proxy_for_test.h ('k') | sync/api/sync_change_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/attachments/attachment_service_proxy_for_test.cc
diff --git a/sync/api/attachments/attachment_service_proxy_for_test.cc b/sync/api/attachments/attachment_service_proxy_for_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..98b3d65373fccc5a460dab3d25187ff2a5ca1aad
--- /dev/null
+++ b/sync/api/attachments/attachment_service_proxy_for_test.cc
@@ -0,0 +1,26 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// 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_for_test.h"
+
+#include "base/message_loop/message_loop_proxy.h"
+#include "sync/api/attachments/fake_attachment_service.h"
+
+namespace syncer {
+
+AttachmentServiceProxyForTestMember::AttachmentServiceProxyForTestMember(
+ scoped_ptr<AttachmentService> wrapped)
+ : wrapped_(wrapped.Pass()), wrapped_weak_ptr_factory_(wrapped_.get()) {}
+
+AttachmentServiceProxyForTestMember::~AttachmentServiceProxyForTestMember() {}
+
+AttachmentServiceProxyForTest::AttachmentServiceProxyForTest()
+ : AttachmentServiceProxyForTestMember(
+ FakeAttachmentService::CreateForTest()),
+ AttachmentServiceProxy(base::MessageLoopProxy::current(),
+ wrapped_weak_ptr_factory_.GetWeakPtr()) {}
tim (not reviewing) 2014/04/04 18:11:34 Yeah, wow. That's quite the conundrum. I had to go
maniscalco 2014/04/04 19:14:23 Fair enough. I'm convinced in this case the benef
maniscalco 2014/04/04 22:57:41 Good news and bad news. Good news is I can use a
+
+AttachmentServiceProxyForTest::~AttachmentServiceProxyForTest() {}
+
+} // namespace syncer
« no previous file with comments | « sync/api/attachments/attachment_service_proxy_for_test.h ('k') | sync/api/sync_change_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698