| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "sync/js/js_test_util.h" | 5 #include "sync/js/js_test_util.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "sync/js/js_event_details.h" | 9 #include "sync/js/js_event_details.h" |
| 10 | 10 |
| 11 namespace syncer { | 11 namespace syncer { |
| 12 | 12 |
| 13 void PrintTo(const JsEventDetails& details, ::std::ostream* os) { | 13 void PrintTo(const JsEventDetails& details, ::std::ostream* os) { |
| 14 *os << details.ToString(); | 14 *os << details.ToString(); |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace { | 17 namespace { |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 MockJsEventHandler::MockJsEventHandler() {} | 75 MockJsEventHandler::MockJsEventHandler() {} |
| 76 | 76 |
| 77 WeakHandle<JsEventHandler> MockJsEventHandler::AsWeakHandle() { | 77 WeakHandle<JsEventHandler> MockJsEventHandler::AsWeakHandle() { |
| 78 return MakeWeakHandle(AsWeakPtr()); | 78 return MakeWeakHandle(AsWeakPtr()); |
| 79 } | 79 } |
| 80 | 80 |
| 81 MockJsEventHandler::~MockJsEventHandler() {} | 81 MockJsEventHandler::~MockJsEventHandler() {} |
| 82 | 82 |
| 83 } // namespace syncer | 83 } // namespace syncer |
| 84 | 84 |
| OLD | NEW |