| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #include "base/bind_helpers.h" |
| #include "base/callback.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| void Increment(int* value) { |
| TEST(BindHelpersTest, TestScopedClosureRunnerExitScope) { |
| base::ScopedClosureRunner runner(base::Bind(&Increment, &run_count)); |
| TEST(BindHelpersTest, TestScopedClosureRunnerRelease) { |
| base::ScopedClosureRunner runner(base::Bind(&Increment, &run_count)); |