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

Unified Diff: mojo/common/binding_set_unittest.cc

Issue 1250463002: Renames WeakBindingSet to BindingSet. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Rebasing 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/binding_set.h ('k') | mojo/common/weak_binding_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/binding_set_unittest.cc
diff --git a/mojo/common/weak_binding_set_unittest.cc b/mojo/common/binding_set_unittest.cc
similarity index 94%
rename from mojo/common/weak_binding_set_unittest.cc
rename to mojo/common/binding_set_unittest.cc
index 2a957b1f9782be35ae80714f3aebdc09520c0663..421a405fd4694eebb129467530490f79341285d8 100644
--- a/mojo/common/weak_binding_set_unittest.cc
+++ b/mojo/common/binding_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_binding_set.h"
+#include "mojo/common/binding_set.h"
#include "base/message_loop/message_loop.h"
#include "mojo/common/message_pump_mojo.h"
@@ -29,8 +29,8 @@ class DummyImpl : public tests::Dummy {
DISALLOW_COPY_AND_ASSIGN(DummyImpl);
};
-// Tests all of the functionality of WeakBindingSet.
-TEST(WeakBindingSet, FullLifeCycleTest) {
+// Tests all of the functionality of BindingSet.
+TEST(BindingSetTest, FullLifeCycle) {
base::MessageLoop loop(MessagePumpMojo::Create());
// Create 10 InterfacePtrs and DummyImpls.
@@ -40,7 +40,7 @@ TEST(WeakBindingSet, FullLifeCycleTest) {
// Create 10 message pipes, bind everything together, and add the
// bindings to binding_set.
- WeakBindingSet<tests::Dummy> binding_set;
+ BindingSet<tests::Dummy> binding_set;
EXPECT_EQ(0u, binding_set.size());
for (size_t i = 0; i < kNumObjects; i++) {
binding_set.AddBinding(&impls[i], GetProxy(&intrfc_ptrs[i]));
« no previous file with comments | « mojo/common/binding_set.h ('k') | mojo/common/weak_binding_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698