Commit 5dd95606 authored by Alexei Filippov's avatar Alexei Filippov Committed by Commit Bot

[heap profiler] Disable the test on Android with no stack unwinding

BUG=884147

Change-Id: Ib68bc3e2be3d8361f085c8c1fc484658c47e4a15
Reviewed-on: https://chromium-review.googlesource.com/c/1489634Reviewed-by: default avatarssid <ssid@chromium.org>
Commit-Queue: Alexei Filippov <alph@chromium.org>
Cr-Commit-Position: refs/heads/master@{#635780}
parent a1b001cf
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "base/metrics/metrics_hashes.h" #include "base/metrics/metrics_hashes.h"
#include "base/sampling_heap_profiler/poisson_allocation_sampler.h" #include "base/sampling_heap_profiler/poisson_allocation_sampler.h"
#include "base/test/test_mock_time_task_runner.h" #include "base/test/test_mock_time_task_runner.h"
#include "build/build_config.h"
#include "components/metrics/call_stack_profile_builder.h" #include "components/metrics/call_stack_profile_builder.h"
#include "content/public/common/content_switches.h" #include "content/public/common/content_switches.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
...@@ -51,7 +52,13 @@ void CheckProfile(int* profiles_count, ...@@ -51,7 +52,13 @@ void CheckProfile(int* profiles_count,
++*profiles_count; ++*profiles_count;
} }
TEST(HeapProfilerControllerTest, ProfileCollectionsScheduler) { #if !defined(OS_ANDROID) || \
BUILDFLAG(CAN_UNWIND_WITH_CFI_TABLE) && defined(OFFICIAL_BUILD)
#define MAYBE_ProfileCollectionsScheduler ProfileCollectionsScheduler
#else
#define MAYBE_ProfileCollectionsScheduler DISABLED_ProfileCollectionsScheduler
#endif
TEST(HeapProfilerControllerTest, MAYBE_ProfileCollectionsScheduler) {
auto task_runner = base::MakeRefCounted<base::TestMockTimeTaskRunner>(); auto task_runner = base::MakeRefCounted<base::TestMockTimeTaskRunner>();
base::TestMockTimeTaskRunner::ScopedContext scoped_context(task_runner.get()); base::TestMockTimeTaskRunner::ScopedContext scoped_context(task_runner.get());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment