Index: base/callback_unittest.cc |
diff --git a/base/callback_unittest.cc b/base/callback_unittest.cc |
index 85ba20ee73ef772432d92e8f96b45ac6c27cb129..ad0430f247f381702644a629002e55e770852728 100644 |
--- a/base/callback_unittest.cc |
+++ b/base/callback_unittest.cc |
@@ -22,21 +22,27 @@ void NopInvokeFunc() {} |
// chance of colliding with another instantiation and breaking the |
// one-definition-rule. |
struct FakeBindState1 : internal::BindStateBase { |
- FakeBindState1() : BindStateBase(&NopInvokeFunc, &Destroy) {} |
+ FakeBindState1() : BindStateBase(&NopInvokeFunc, &Destroy, &IsCancelled) {} |
private: |
~FakeBindState1() {} |
static void Destroy(internal::BindStateBase* self) { |
delete static_cast<FakeBindState1*>(self); |
} |
+ static bool IsCancelled(const internal::BindStateBase*) { |
+ return false; |
+ } |
}; |
struct FakeBindState2 : internal::BindStateBase { |
- FakeBindState2() : BindStateBase(&NopInvokeFunc, &Destroy) {} |
+ FakeBindState2() : BindStateBase(&NopInvokeFunc, &Destroy, &IsCancelled) {} |
private: |
~FakeBindState2() {} |
static void Destroy(internal::BindStateBase* self) { |
delete static_cast<FakeBindState2*>(self); |
} |
+ static bool IsCancelled(const internal::BindStateBase*) { |
+ return false; |
+ } |
}; |
namespace { |