Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: content/public/test/test_browser_thread_bundle_unittest.cc

Issue 2859283002: Revert of Support base::test::ScopedTaskEnvironment and content::TestBrowserThreadBundle in the same scope. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/test/test_browser_thread_bundle.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/test/test_browser_thread_bundle_unittest.cc
diff --git a/content/public/test/test_browser_thread_bundle_unittest.cc b/content/public/test/test_browser_thread_bundle_unittest.cc
deleted file mode 100644
index 7a0dc83f0e336296a373b4aadd207e1f53292007..0000000000000000000000000000000000000000
--- a/content/public/test/test_browser_thread_bundle_unittest.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/public/test/test_browser_thread_bundle.h"
-
-#include "base/message_loop/message_loop.h"
-#include "base/test/scoped_task_environment.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace content {
-
-TEST(TestBrowserThreadBundle, ScopedTaskEnvironmentAndTestBrowserThreadBundle) {
- base::test::ScopedTaskEnvironment scoped_task_environment(
- base::test::ScopedTaskEnvironment::MainThreadType::UI);
- TestBrowserThreadBundle test_browser_thread_bundle;
-}
-
-TEST(TestBrowserThreadBundleTest, MessageLoopTypeMismatch) {
- base::MessageLoopForUI message_loop;
- EXPECT_DEATH(
- {
- TestBrowserThreadBundle test_browser_thread_bundle(
- TestBrowserThreadBundle::IO_MAINLOOP);
- },
- "Check failed");
-}
-
-TEST(TestBrowserThreadBundleTest, MultipleTestBrowserThreadBundle) {
- TestBrowserThreadBundle test_browser_thread_bundle;
- EXPECT_DEATH({ TestBrowserThreadBundle other_test_browser_thread_bundle; },
- "Check failed");
-}
-
-} // namespace content
« no previous file with comments | « content/public/test/test_browser_thread_bundle.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698