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 |