| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/at_exit.h" | 5 #include "base/at_exit.h" |
| 6 #include "base/bind.h" | 6 #include "base/bind.h" |
| 7 | 7 |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 TEST_F(AtExitTest, Param) { | 75 TEST_F(AtExitTest, Param) { |
| 76 base::AtExitManager::RegisterCallback(&ExpectParamIsNull, NULL); | 76 base::AtExitManager::RegisterCallback(&ExpectParamIsNull, NULL); |
| 77 base::AtExitManager::RegisterCallback(&ExpectParamIsCounter, | 77 base::AtExitManager::RegisterCallback(&ExpectParamIsCounter, |
| 78 &g_test_counter_1); | 78 &g_test_counter_1); |
| 79 base::AtExitManager::ProcessCallbacksNow(); | 79 base::AtExitManager::ProcessCallbacksNow(); |
| 80 } | 80 } |
| 81 | 81 |
| 82 TEST_F(AtExitTest, Task) { | 82 TEST_F(AtExitTest, Task) { |
| 83 ZeroTestCounters(); | 83 ZeroTestCounters(); |
| 84 base::AtExitManager::RegisterTask(base::Bind(ExpectParamIsCounter, | 84 base::AtExitManager::RegisterTask(base::Bind(&ExpectParamIsCounter, |
| 85 &g_test_counter_1)); | 85 &g_test_counter_1)); |
| 86 base::AtExitManager::ProcessCallbacksNow(); | 86 base::AtExitManager::ProcessCallbacksNow(); |
| 87 } | 87 } |
| OLD | NEW |