| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <cstdlib> | 5 #include <cstdlib> |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/native_library.h" | 11 #include "base/native_library.h" |
| 12 #include "base/path_service.h" | 12 #include "base/path_service.h" |
| 13 #include "base/profiler/native_stack_sampler.h" | 13 #include "base/profiler/native_stack_sampler.h" |
| 14 #include "base/profiler/stack_sampling_profiler.h" | 14 #include "base/profiler/stack_sampling_profiler.h" |
| 15 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
| 16 #include "base/scoped_native_library.h" | 16 #include "base/scoped_native_library.h" |
| 17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
| 18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 19 #include "base/synchronization/waitable_event.h" | 19 #include "base/synchronization/waitable_event.h" |
| 20 #include "base/threading/platform_thread.h" | 20 #include "base/threading/platform_thread.h" |
| 21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
| 22 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/googletest/include/gtest/gtest.h" |
| 24 | 24 |
| 25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
| 26 #include <intrin.h> | 26 #include <intrin.h> |
| 27 #include <malloc.h> | 27 #include <malloc.h> |
| 28 #include <windows.h> | 28 #include <windows.h> |
| 29 #else | 29 #else |
| 30 #include <alloca.h> | 30 #include <alloca.h> |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 // STACK_SAMPLING_PROFILER_SUPPORTED is used to conditionally enable the tests | 33 // STACK_SAMPLING_PROFILER_SUPPORTED is used to conditionally enable the tests |
| (...skipping 920 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 954 #if defined(STACK_SAMPLING_PROFILER_SUPPORTED) | 954 #if defined(STACK_SAMPLING_PROFILER_SUPPORTED) |
| 955 #define MAYBE_UnloadedLibrary UnloadedLibrary | 955 #define MAYBE_UnloadedLibrary UnloadedLibrary |
| 956 #else | 956 #else |
| 957 #define MAYBE_UnloadedLibrary DISABLED_UnloadedLibrary | 957 #define MAYBE_UnloadedLibrary DISABLED_UnloadedLibrary |
| 958 #endif | 958 #endif |
| 959 TEST(StackSamplingProfilerTest, MAYBE_UnloadedLibrary) { | 959 TEST(StackSamplingProfilerTest, MAYBE_UnloadedLibrary) { |
| 960 TestLibraryUnload(true); | 960 TestLibraryUnload(true); |
| 961 } | 961 } |
| 962 | 962 |
| 963 } // namespace base | 963 } // namespace base |
| OLD | NEW |