Commit 31435595 authored by Carlos Caballero's avatar Carlos Caballero Committed by Commit Bot

[scheduling] Use ScopedTaskEnvironment instead of MessageLoop in payments

MessageLoop will go away, eventually.

BUG=891670

Change-Id: I43de3ccb29bcb978c0a426094e996638b352d8ea
Reviewed-on: https://chromium-review.googlesource.com/c/1352762Reviewed-by: default avatarGanggui Tang <gogerald@chromium.org>
Commit-Queue: Carlos Caballero <carlscab@google.com>
Cr-Commit-Position: refs/heads/master@{#611754}
parent 1f8f83fe
......@@ -4,8 +4,8 @@
#include "components/payments/core/can_make_payment_query.h"
#include "base/message_loop/message_loop.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/scoped_task_environment.h"
#include "components/payments/core/features.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
......@@ -18,7 +18,7 @@ class CanMakePaymentQueryTest : public ::testing::Test {
CanMakePaymentQuery guard_;
private:
base::MessageLoop message_loop_;
base::test::ScopedTaskEnvironment task_environment_;
};
// An HTTPS website is not allowed to query all of the networks of the cards in
......
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