Index: components/leveldb/remote_iterator_unittest.cc |
diff --git a/components/leveldb/remote_iterator_unittest.cc b/components/leveldb/remote_iterator_unittest.cc |
index 274229a6d23fda83d6b97ac17e87b945b792eba0..714dae167ed5d0a7c245b3c65e8949962519bbb1 100644 |
--- a/components/leveldb/remote_iterator_unittest.cc |
+++ b/components/leveldb/remote_iterator_unittest.cc |
@@ -8,15 +8,17 @@ |
#include "components/leveldb/public/cpp/remote_iterator.h" |
#include "components/leveldb/public/interfaces/leveldb.mojom.h" |
#include "mojo/common/common_type_converters.h" |
-#include "mojo/util/capture_util.h" |
#include "services/shell/public/cpp/shell_connection.h" |
#include "services/shell/public/cpp/shell_test.h" |
-using mojo::Capture; |
- |
namespace leveldb { |
namespace { |
+template <typename T1> |
+mojo::Callback<void(T1)> Capture(T1* t1) { |
+ return [t1](T1 got_t1) { *t1 = std::move(got_t1); }; |
+} |
+ |
class RemoteIteratorTest : public shell::test::ShellTest { |
public: |
RemoteIteratorTest() : ShellTest("exe:leveldb_service_unittests") {} |