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

Unified Diff: ios/web/test/test_web_thread_bundle_adapter.cc

Issue 1406983008: [iOS] ios/web no longer depends on content::BrowserThread. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 1 month 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 | « ios/web/test/test_web_thread_bundle.cc ('k') | ios/web/test/web_test_suite.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/test/test_web_thread_bundle_adapter.cc
diff --git a/ios/web/test/test_web_thread_bundle_adapter.cc b/ios/web/test/test_web_thread_bundle_adapter.cc
deleted file mode 100644
index 15745da79f00dbfb311cbe744972d9bb7d8d7aea..0000000000000000000000000000000000000000
--- a/ios/web/test/test_web_thread_bundle_adapter.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2014 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 "ios/web/public/test/test_web_thread_bundle.h"
-
-#include "content/public/test/test_browser_thread_bundle.h"
-
-namespace web {
-
-namespace {
-
-int TestBrowserThreadBundleOptionsFromTestWebThreadBundleOptions(int options) {
- int result = 0;
- if (options & TestWebThreadBundle::IO_MAINLOOP)
- result |= content::TestBrowserThreadBundle::IO_MAINLOOP;
- if (options & TestWebThreadBundle::REAL_DB_THREAD)
- result |= content::TestBrowserThreadBundle::REAL_DB_THREAD;
- if (options & TestWebThreadBundle::REAL_FILE_THREAD)
- result |= content::TestBrowserThreadBundle::REAL_FILE_THREAD;
- if (options & TestWebThreadBundle::REAL_FILE_USER_BLOCKING_THREAD)
- result |= content::TestBrowserThreadBundle::REAL_FILE_USER_BLOCKING_THREAD;
- if (options & TestWebThreadBundle::REAL_CACHE_THREAD)
- result |= content::TestBrowserThreadBundle::REAL_CACHE_THREAD;
- if (options & TestWebThreadBundle::REAL_IO_THREAD)
- result |= content::TestBrowserThreadBundle::REAL_IO_THREAD;
- return result;
-}
-
-} // namespace
-
-class TestWebThreadBundleImpl {
- public:
- explicit TestWebThreadBundleImpl(int options)
- : test_browser_thread_bundle_(
- TestBrowserThreadBundleOptionsFromTestWebThreadBundleOptions(
- options)) {}
-
- private:
- content::TestBrowserThreadBundle test_browser_thread_bundle_;
-
- DISALLOW_COPY_AND_ASSIGN(TestWebThreadBundleImpl);
-};
-
-TestWebThreadBundle::TestWebThreadBundle()
- : impl_(new TestWebThreadBundleImpl(DEFAULT)) {
-}
-
-TestWebThreadBundle::TestWebThreadBundle(int options)
- : impl_(new TestWebThreadBundleImpl(options)) {
-}
-
-TestWebThreadBundle::~TestWebThreadBundle() {
-}
-
-} // namespace web
« no previous file with comments | « ios/web/test/test_web_thread_bundle.cc ('k') | ios/web/test/web_test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698