Commit a8baa548 authored by Eric Seckler's avatar Eric Seckler Committed by Commit Bot

tracing: Use higher priority file write in TracingControllerTest

To reduce flakiness on win.

Bug: 1048948
Change-Id: I538a26f97f73c413b8310918db2c86523f9f6ea5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2043570Reviewed-by: default avatarStephen Nusko <nuskos@chromium.org>
Reviewed-by: default avatarEric Seckler <eseckler@chromium.org>
Commit-Queue: Eric Seckler <eseckler@chromium.org>
Cr-Commit-Position: refs/heads/master@{#739332}
parent f3c2470e
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
#include "base/run_loop.h" #include "base/run_loop.h"
#include "base/strings/pattern.h" #include "base/strings/pattern.h"
#include "base/task/post_task.h" #include "base/task/post_task.h"
#include "base/task/task_traits.h"
#include "base/threading/thread_restrictions.h" #include "base/threading/thread_restrictions.h"
#include "base/values.h" #include "base/values.h"
#include "build/build_config.h" #include "build/build_config.h"
...@@ -315,7 +316,8 @@ class TracingControllerTest : public ContentBrowserTest { ...@@ -315,7 +316,8 @@ class TracingControllerTest : public ContentBrowserTest {
base::Unretained(this), run_loop.QuitClosure(), result_file_path); base::Unretained(this), run_loop.QuitClosure(), result_file_path);
bool result = bool result =
controller->StopTracing(TracingController::CreateFileEndpoint( controller->StopTracing(TracingController::CreateFileEndpoint(
result_file_path, std::move(callback))); result_file_path, std::move(callback),
base::TaskPriority::USER_BLOCKING));
ASSERT_TRUE(result); ASSERT_TRUE(result);
run_loop.Run(); run_loop.Run();
EXPECT_EQ(disable_recording_done_callback_count(), 1); EXPECT_EQ(disable_recording_done_callback_count(), 1);
......
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