| Index: ipc/mojo/ipc_mojo_perftest.cc
|
| diff --git a/ipc/mojo/ipc_mojo_perftest.cc b/ipc/mojo/ipc_mojo_perftest.cc
|
| index 17a43a077e63eb61a8436fb576042037334b9163..bbfb63297a64b09ae8e2929a4d35395a90601479 100644
|
| --- a/ipc/mojo/ipc_mojo_perftest.cc
|
| +++ b/ipc/mojo/ipc_mojo_perftest.cc
|
| @@ -6,7 +6,14 @@
|
| #include "base/run_loop.h"
|
| #include "ipc/ipc_perftest_support.h"
|
| #include "ipc/mojo/ipc_channel_mojo.h"
|
| +
|
| +#if defined(USE_CHROME_EDK)
|
| +#include "mojo/edk/embedder/platform_channel_pair.h"
|
| +#include "mojo/edk/embedder/test_embedder.h"
|
| +#else
|
| +#include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h"
|
| #include "third_party/mojo/src/mojo/edk/embedder/test_embedder.h"
|
| +#endif
|
|
|
| namespace {
|
|
|
| @@ -65,6 +72,20 @@ TEST_F(MojoChannelPerfTest, ChannelProxyPingPong) {
|
| run_loop.RunUntilIdle();
|
| }
|
|
|
| +
|
| +TEST_F(MojoChannelPerfTest, DISABLED_MaxChannelCount) {
|
| +#if defined(OS_POSIX)
|
| + LOG(INFO) << "base::GetMaxFds " << base::GetMaxFds();
|
| + base::SetFdLimit(20000);
|
| +#endif
|
| +
|
| + std::vector<mojo::embedder::PlatformChannelPair*> channels;
|
| + for (size_t i = 0; i < 10000; ++i) {
|
| + LOG(INFO) << "channels size: " << channels.size();
|
| + channels.push_back(new mojo::embedder::PlatformChannelPair());
|
| + }
|
| +}
|
| +
|
| class MojoTestClient : public IPC::test::PingPongTestClient {
|
| public:
|
| typedef IPC::test::PingPongTestClient SuperType;
|
|
|