Index: base/at_exit_unittest.cc |
=================================================================== |
--- base/at_exit_unittest.cc (revision 99168) |
+++ base/at_exit_unittest.cc (working copy) |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "base/at_exit.h" |
+#include "base/bind.h" |
#include "testing/gtest/include/gtest/gtest.h" |
@@ -77,3 +78,10 @@ |
&g_test_counter_1); |
base::AtExitManager::ProcessCallbacksNow(); |
} |
+ |
+TEST_F(AtExitTest, Task) { |
+ ZeroTestCounters(); |
+ base::AtExitManager::RegisterTask(base::Bind(ExpectParamIsCounter, |
+ &g_test_counter_1)); |
+ base::AtExitManager::ProcessCallbacksNow(); |
+} |