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

Unified Diff: mojo/common/interface_ptr_set_unittest.cc

Issue 1237653005: Rename WeakInterfacePtrSet to InterfacePtrSet. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Responding to code review take 2. Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/common/interface_ptr_set.h ('k') | mojo/common/weak_interface_ptr_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/interface_ptr_set_unittest.cc
diff --git a/mojo/common/weak_interface_ptr_set_unittest.cc b/mojo/common/interface_ptr_set_unittest.cc
similarity index 94%
rename from mojo/common/weak_interface_ptr_set_unittest.cc
rename to mojo/common/interface_ptr_set_unittest.cc
index ca0433d2489971c8bd92b4df14d860803da900ca..8edd4caaf762177efa97dee36a95434fd45515e5 100644
--- a/mojo/common/weak_interface_ptr_set_unittest.cc
+++ b/mojo/common/interface_ptr_set_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "mojo/common/weak_interface_ptr_set.h"
+#include "mojo/common/interface_ptr_set.h"
#include "base/message_loop/message_loop.h"
#include "mojo/common/message_pump_mojo.h"
@@ -32,8 +32,8 @@ class DummyImpl : public tests::Dummy {
DISALLOW_COPY_AND_ASSIGN(DummyImpl);
};
-// Tests all of the functionality of WeakInterfacePtrSet.
-TEST(WeakInterfacePtr, FullLifeCycleTest) {
+// Tests all of the functionality of InterfacePtrSet.
+TEST(InterfacePtrSetTest, FullLifeCycle) {
base::MessageLoop loop(MessagePumpMojo::Create());
// Create 10 InterfacePtrs.
@@ -47,7 +47,7 @@ TEST(WeakInterfacePtr, FullLifeCycleTest) {
}
// Move all 10 InterfacePtrs into the set.
- WeakInterfacePtrSet<tests::Dummy> intrfc_ptr_set;
+ InterfacePtrSet<tests::Dummy> intrfc_ptr_set;
EXPECT_EQ(0u, intrfc_ptr_set.size());
for (InterfacePtr<tests::Dummy>& ptr : intrfc_ptrs) {
intrfc_ptr_set.AddInterfacePtr(ptr.Pass());
« no previous file with comments | « mojo/common/interface_ptr_set.h ('k') | mojo/common/weak_interface_ptr_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698