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

Side by Side Diff: mojo/public/cpp/bindings/tests/multiplex_router_unittest.cc

Issue 2276043002: Support custom message filtering on Mojo binding objects (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "mojo/public/cpp/bindings/lib/multiplex_router.h" 5 #include "mojo/public/cpp/bindings/lib/multiplex_router.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 #include "mojo/public/cpp/bindings/interface_endpoint_client.h" 15 #include "mojo/public/cpp/bindings/interface_endpoint_client.h"
16 #include "mojo/public/cpp/bindings/message.h" 16 #include "mojo/public/cpp/bindings/message.h"
17 #include "mojo/public/cpp/bindings/message_filter.h"
18 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h" 17 #include "mojo/public/cpp/bindings/scoped_interface_endpoint_handle.h"
19 #include "mojo/public/cpp/bindings/tests/message_queue.h" 18 #include "mojo/public/cpp/bindings/tests/message_queue.h"
20 #include "mojo/public/cpp/bindings/tests/router_test_util.h" 19 #include "mojo/public/cpp/bindings/tests/router_test_util.h"
21 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
22 21
23 namespace mojo { 22 namespace mojo {
24 namespace test { 23 namespace test {
25 namespace { 24 namespace {
26 25
27 using mojo::internal::MultiplexRouter; 26 using mojo::internal::MultiplexRouter;
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 334
336 EXPECT_FALSE(generator.responder_is_valid()); 335 EXPECT_FALSE(generator.responder_is_valid());
337 generator.CompleteWithResponse(); // This should end up doing nothing. 336 generator.CompleteWithResponse(); // This should end up doing nothing.
338 } 337 }
339 338
340 // TODO(yzshen): add more tests. 339 // TODO(yzshen): add more tests.
341 340
342 } // namespace 341 } // namespace
343 } // namespace test 342 } // namespace test
344 } // namespace mojo 343 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/binding_unittest.cc ('k') | mojo/public/cpp/bindings/tests/router_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698