summaryrefslogtreecommitdiffstats
path: root/chromium/base/message_loop/message_loop_unittest.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-23 17:21:03 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-01-23 16:25:15 +0000
commitc551f43206405019121bd2b2c93714319a0a3300 (patch)
tree1f48c30631c421fd4bbb3c36da20183c8a2ed7d7 /chromium/base/message_loop/message_loop_unittest.cc
parent7961cea6d1041e3e454dae6a1da660b453efd238 (diff)
BASELINE: Update Chromium to 79.0.3945.139
Change-Id: I336b7182fab9bca80b709682489c07db112eaca5 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/base/message_loop/message_loop_unittest.cc')
-rw-r--r--chromium/base/message_loop/message_loop_unittest.cc25
1 files changed, 2 insertions, 23 deletions
diff --git a/chromium/base/message_loop/message_loop_unittest.cc b/chromium/base/message_loop/message_loop_unittest.cc
index 9d5e92d50bb..02cb94b5b47 100644
--- a/chromium/base/message_loop/message_loop_unittest.cc
+++ b/chromium/base/message_loop/message_loop_unittest.cc
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/message_loop/message_loop.h"
+
#include <stddef.h>
#include <stdint.h>
@@ -1507,29 +1509,6 @@ TEST_F(MessageLoopTest, WmQuitIsIgnored) {
EXPECT_TRUE(task_was_run);
}
-TEST_F(MessageLoopTest, WmQuitIsNotIgnoredWithEnableWmQuit) {
- MessageLoop loop(MessagePumpType::UI);
- static_cast<MessageLoopForUI*>(&loop)->EnableWmQuit();
-
- // Post a WM_QUIT message to the current thread.
- ::PostQuitMessage(0);
-
- // Post a task to the current thread, with a small delay to make it less
- // likely that we process the posted task before looking for WM_* messages.
- RunLoop run_loop;
- loop.task_runner()->PostDelayedTask(FROM_HERE,
- BindOnce(
- [](OnceClosure closure) {
- ADD_FAILURE();
- std::move(closure).Run();
- },
- run_loop.QuitClosure()),
- TestTimeouts::tiny_timeout());
-
- // Run the loop. It should not result in ADD_FAILURE() getting called.
- run_loop.Run();
-}
-
TEST_F(MessageLoopTest, PostDelayedTask_SharedTimer_SubPump) {
MessageLoop message_loop(MessagePumpType::UI);