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

Side by Side Diff: chrome/browser/sync/js/js_test_util.cc

Issue 8568041: [Sync] Add type conversion constructor for WeakHandle (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up tests a bit Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/sync/js/js_test_util.h" 5 #include "chrome/browser/sync/js/js_test_util.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/sync/js/js_arg_list.h" 9 #include "chrome/browser/sync/js/js_arg_list.h"
10 #include "chrome/browser/sync/js/js_event_details.h" 10 #include "chrome/browser/sync/js/js_event_details.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 scoped_ptr<DictionaryValue> expected_details_copy( 103 scoped_ptr<DictionaryValue> expected_details_copy(
104 expected_details.DeepCopy()); 104 expected_details.DeepCopy());
105 return HasDetails(JsEventDetails(expected_details_copy.get())); 105 return HasDetails(JsEventDetails(expected_details_copy.get()));
106 } 106 }
107 107
108 MockJsBackend::MockJsBackend() {} 108 MockJsBackend::MockJsBackend() {}
109 109
110 MockJsBackend::~MockJsBackend() {} 110 MockJsBackend::~MockJsBackend() {}
111 111
112 WeakHandle<JsBackend> MockJsBackend::AsWeakHandle() { 112 WeakHandle<JsBackend> MockJsBackend::AsWeakHandle() {
113 return WeakHandle<JsBackend>(AsWeakPtr()); 113 return MakeWeakHandle(AsWeakPtr());
114 } 114 }
115 115
116 MockJsController::MockJsController() {} 116 MockJsController::MockJsController() {}
117 117
118 MockJsController::~MockJsController() {} 118 MockJsController::~MockJsController() {}
119 119
120 MockJsEventHandler::MockJsEventHandler() {} 120 MockJsEventHandler::MockJsEventHandler() {}
121 121
122 WeakHandle<JsEventHandler> MockJsEventHandler::AsWeakHandle() { 122 WeakHandle<JsEventHandler> MockJsEventHandler::AsWeakHandle() {
123 return WeakHandle<JsEventHandler>(AsWeakPtr()); 123 return MakeWeakHandle(AsWeakPtr());
124 } 124 }
125 125
126 MockJsEventHandler::~MockJsEventHandler() {} 126 MockJsEventHandler::~MockJsEventHandler() {}
127 127
128 MockJsReplyHandler::MockJsReplyHandler() {} 128 MockJsReplyHandler::MockJsReplyHandler() {}
129 129
130 MockJsReplyHandler::~MockJsReplyHandler() {} 130 MockJsReplyHandler::~MockJsReplyHandler() {}
131 131
132 WeakHandle<JsReplyHandler> MockJsReplyHandler::AsWeakHandle() { 132 WeakHandle<JsReplyHandler> MockJsReplyHandler::AsWeakHandle() {
133 return WeakHandle<JsReplyHandler>(AsWeakPtr()); 133 return MakeWeakHandle(AsWeakPtr());
134 } 134 }
135 135
136 } // namespace browser_sync 136 } // namespace browser_sync
137 137
OLDNEW
« no previous file with comments | « chrome/browser/sync/internal_api/sync_manager.cc ('k') | chrome/browser/sync/notifier/chrome_invalidation_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698