OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 <string> | 5 #include <string> |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
12 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
13 #include "ppapi/shared_impl/proxy_lock.h" | 14 #include "ppapi/shared_impl/proxy_lock.h" |
14 #include "ppapi/shared_impl/test_globals.h" | 15 #include "ppapi/shared_impl/test_globals.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
16 | 17 |
17 namespace ppapi { | 18 namespace ppapi { |
18 | 19 |
19 namespace { | 20 namespace { |
20 | 21 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 } | 176 } |
176 { | 177 { |
177 base::Callback<void()> callback(base::Bind(TestCallback_0)); | 178 base::Callback<void()> callback(base::Bind(TestCallback_0)); |
178 CallWhileUnlocked(callback); | 179 CallWhileUnlocked(callback); |
179 ASSERT_EQ(1, called_num); | 180 ASSERT_EQ(1, called_num); |
180 called_num = 0; | 181 called_num = 0; |
181 } | 182 } |
182 } | 183 } |
183 | 184 |
184 } // namespace ppapi | 185 } // namespace ppapi |
OLD | NEW |