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

Unified Diff: base/callback_unittest.cc

Issue 1507143003: Clean up base::Callback stuff (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « base/callback_forward.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/callback_unittest.cc
diff --git a/base/callback_unittest.cc b/base/callback_unittest.cc
index 2844aa98a29317149eaaf493b3d9f92b3f7fff0b..5daef95231cc636507c3bfaf46d303e8efd0437f 100644
--- a/base/callback_unittest.cc
+++ b/base/callback_unittest.cc
@@ -23,8 +23,6 @@ struct FakeInvoker {
} // namespace
namespace internal {
-template <typename Runnable, typename RunType, typename BoundArgsType>
-struct BindState;
// White-box testpoints to inject into a Callback<> object for checking
// comparators and emptiness APIs. Use a BindState that is specialized
@@ -32,7 +30,7 @@ struct BindState;
// chance of colliding with another instantiation and breaking the
// one-definition-rule.
template <>
-struct BindState<void(void), void(void), void(FakeInvoker)>
+struct BindState<void(void), void(void), FakeInvoker>
: public BindStateBase {
public:
BindState() : BindStateBase(&Destroy) {}
@@ -45,8 +43,7 @@ struct BindState<void(void), void(void), void(FakeInvoker)>
};
template <>
-struct BindState<void(void), void(void),
- void(FakeInvoker, FakeInvoker)>
+struct BindState<void(void), void(void), FakeInvoker, FakeInvoker>
: public BindStateBase {
public:
BindState() : BindStateBase(&Destroy) {}
@@ -61,11 +58,10 @@ struct BindState<void(void), void(void),
namespace {
-typedef internal::BindState<void(void), void(void), void(FakeInvoker)>
+typedef internal::BindState<void(void), void(void), FakeInvoker>
FakeBindState1;
-typedef internal::BindState<void(void), void(void),
- void(FakeInvoker, FakeInvoker)>
- FakeBindState2;
+typedef internal::BindState<void(void), void(void), FakeInvoker, FakeInvoker>
+ FakeBindState2;
class CallbackTest : public ::testing::Test {
public:
« no previous file with comments | « base/callback_forward.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698