OLD | NEW |
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 <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "build/build_config.h" | 12 #include "build/build_config.h" |
13 #include "mojo/public/cpp/bindings/binding.h" | 13 #include "mojo/public/cpp/bindings/binding.h" |
14 #include "mojo/public/cpp/bindings/interface_ptr.h" | 14 #include "mojo/public/cpp/bindings/interface_ptr.h" |
15 #include "mojo/public/cpp/bindings/string.h" | |
16 #include "mojo/public/cpp/system/message_pipe.h" | 15 #include "mojo/public/cpp/system/message_pipe.h" |
17 #include "mojo/public/cpp/test_support/test_support.h" | 16 #include "mojo/public/cpp/test_support/test_support.h" |
18 #include "mojo/public/interfaces/bindings/tests/sample_interfaces.mojom.h" | 17 #include "mojo/public/interfaces/bindings/tests/sample_interfaces.mojom.h" |
19 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
20 | 19 |
21 /////////////////////////////////////////////////////////////////////////////// | 20 /////////////////////////////////////////////////////////////////////////////// |
22 // | 21 // |
23 // The tests in this file are designed to test the interaction between a | 22 // The tests in this file are designed to test the interaction between a |
24 // Callback and its associated Binding. If a Callback is deleted before | 23 // Callback and its associated Binding. If a Callback is deleted before |
25 // being used we DCHECK fail--unless the associated Binding has already | 24 // being used we DCHECK fail--unless the associated Binding has already |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 regex.clear(); | 338 regex.clear(); |
340 #endif // OS_WIN | 339 #endif // OS_WIN |
341 EXPECT_DEATH_IF_SUPPORTED(server_impl.DeleteCallback(), regex.c_str()); | 340 EXPECT_DEATH_IF_SUPPORTED(server_impl.DeleteCallback(), regex.c_str()); |
342 #endif // (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) && | 341 #endif // (!defined(NDEBUG) || defined(DCHECK_ALWAYS_ON)) && |
343 // !defined(OS_ANDROID) | 342 // !defined(OS_ANDROID) |
344 } | 343 } |
345 | 344 |
346 } // namespace | 345 } // namespace |
347 } // namespace test | 346 } // namespace test |
348 } // namespace mojo | 347 } // namespace mojo |
OLD | NEW |