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

Unified Diff: content/browser/web_contents/web_contents_delegate_unittest.cc

Issue 14197014: Add TestBrowserThreadBundle into RenderViewHostTestHarness. Kill some unnecessary real threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged ToT Created 7 years, 6 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
Index: content/browser/web_contents/web_contents_delegate_unittest.cc
diff --git a/content/browser/web_contents/web_contents_delegate_unittest.cc b/content/browser/web_contents/web_contents_delegate_unittest.cc
index 9c5e0e7a2627892c01b8738a358fade336541881..e5bb6790bc6f34a8598c7a3065e3be52e4a00580 100644
--- a/content/browser/web_contents/web_contents_delegate_unittest.cc
+++ b/content/browser/web_contents/web_contents_delegate_unittest.cc
@@ -7,30 +7,16 @@
#include "base/message_loop.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/browser/renderer_host/test_render_view_host.h"
-#include "content/public/browser/browser_thread.h"
#include "content/public/browser/web_contents_delegate.h"
#include "content/public/test/test_browser_context.h"
-#include "content/public/test/test_browser_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
class MockWebContentsDelegate : public WebContentsDelegate {
- public:
- virtual ~MockWebContentsDelegate() {}
};
class WebContentsDelegateTest : public RenderViewHostImplTestHarness {
- public:
- WebContentsDelegateTest()
- : file_user_blocking_thread_(
- BrowserThread::FILE_USER_BLOCKING, &message_loop_),
- io_thread_(BrowserThread::IO, &message_loop_) {
- }
-
- private:
- TestBrowserThread file_user_blocking_thread_;
- TestBrowserThread io_thread_;
};
TEST_F(WebContentsDelegateTest, UnregisterInDestructor) {

Powered by Google App Engine
This is Rietveld 408576698