diff options
author | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-18 04:05:14 +0000 |
---|---|---|
committer | ajwong@chromium.org <ajwong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-18 04:05:14 +0000 |
commit | 15fcb6590c658858007a61dd24055dcefd0b699d (patch) | |
tree | 817040b4ccd84a59dcd778696ff328016083d95b /base/bind_unittest.cc | |
parent | 3d049916edeb079db28283fb230b89def0721547 (diff) | |
download | chromium_src-15fcb6590c658858007a61dd24055dcefd0b699d.zip chromium_src-15fcb6590c658858007a61dd24055dcefd0b699d.tar.gz chromium_src-15fcb6590c658858007a61dd24055dcefd0b699d.tar.bz2 |
Emptiness, Reset, and Comparison API for Callbacks.
Since Callback<> is essentially a smartpointer, some introspective APIs are
required for sensible usage.
BUG=35223
TEST=new unittests
Review URL: http://codereview.chromium.org/6507029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/bind_unittest.cc')
-rw-r--r-- | base/bind_unittest.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/base/bind_unittest.cc b/base/bind_unittest.cc index 47d971a..77eb98a 100644 --- a/base/bind_unittest.cc +++ b/base/bind_unittest.cc @@ -212,18 +212,6 @@ class BindTest : public ::testing::Test { StrictMock<NoRef>* BindTest::static_func_mock_ptr; -// Ensure we can create unbound callbacks. We need this to be able to store -// them in class members that can be initialized later. -TEST_F(BindTest, DefaultConstruction) { - Callback<void(void)> c0; - Callback<void(int)> c1; - Callback<void(int,int)> c2; - Callback<void(int,int,int)> c3; - Callback<void(int,int,int,int)> c4; - Callback<void(int,int,int,int,int)> c5; - Callback<void(int,int,int,int,int,int)> c6; -} - // Sanity check that we can instantiate a callback for each arity. TEST_F(BindTest, ArityTest) { Callback<int(void)> c0 = Bind(&Sum, 32, 16, 8, 4, 2, 1); |