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

Side by Side Diff: mojo/system/embedder/embedder_unittest.cc

Issue 136793026: Mojo: Add leak detection to mojo::embedder::test::Shutdown(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/system/embedder/embedder.h" 5 #include "mojo/system/embedder/embedder.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 base::Bind(&DestroyChannelOnIOThread, 84 base::Bind(&DestroyChannelOnIOThread,
85 server_channel_info)); 85 server_channel_info));
86 86
87 EXPECT_TRUE(client_channel_info != NULL); 87 EXPECT_TRUE(client_channel_info != NULL);
88 system::test::PostTaskAndWait(io_thread_task_runner(), 88 system::test::PostTaskAndWait(io_thread_task_runner(),
89 FROM_HERE, 89 FROM_HERE,
90 base::Bind(&DestroyChannelOnIOThread, 90 base::Bind(&DestroyChannelOnIOThread,
91 client_channel_info)); 91 client_channel_info));
92 #endif // !defined(OS_WIN) 92 #endif // !defined(OS_WIN)
93 93
94 test::Shutdown(); 94 EXPECT_TRUE(test::Shutdown());
95 } 95 }
96 96
97 // TODO(vtl): Test immediate write & close. 97 // TODO(vtl): Test immediate write & close.
98 // TODO(vtl): Test broken-connection cases. 98 // TODO(vtl): Test broken-connection cases.
99 99
100 } // namespace 100 } // namespace
101 } // namespace embedder 101 } // namespace embedder
102 } // namespace mojo 102 } // namespace mojo
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698