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

Unified Diff: extensions/browser/api/api_resource_manager_unittest.cc

Issue 319543006: Move c/b/e/api/api_resource_manager_unittest.cc to (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use TestBrowserThreadBundle instead Created 6 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/api_resource_manager_unittest.cc
diff --git a/chrome/browser/extensions/api/api_resource_manager_unittest.cc b/extensions/browser/api/api_resource_manager_unittest.cc
similarity index 86%
rename from chrome/browser/extensions/api/api_resource_manager_unittest.cc
rename to extensions/browser/api/api_resource_manager_unittest.cc
index 865c4afeb7b0569b34182c0422e14ecba7d89f38..c2df25b560ea23c1fab9656099a0f725678ec08c 100644
--- a/chrome/browser/extensions/api/api_resource_manager_unittest.cc
+++ b/extensions/browser/api/api_resource_manager_unittest.cc
@@ -5,10 +5,8 @@
#include "base/files/file_path.h"
#include "base/strings/string_util.h"
#include "chrome/browser/extensions/extension_function_test_utils.h"
-#include "chrome/browser/profiles/profile.h"
-#include "chrome/common/extensions/extension_test_util.h"
-#include "chrome/test/base/browser_with_test_window_test.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/test/test_browser_thread_bundle.h"
#include "extensions/browser/api/api_resource.h"
#include "extensions/browser/api/api_resource_manager.h"
#include "extensions/common/extension.h"
@@ -21,10 +19,9 @@ using content::BrowserThread;
namespace extensions {
-// TODO(rockot): Move these tests to src/extensions.
-class ApiResourceManagerUnitTest : public BrowserWithTestWindowTest {
- public:
- virtual void SetUp() { BrowserWithTestWindowTest::SetUp(); }
+class ApiResourceManagerUnitTest : public testing::Test {
+ private:
+ content::TestBrowserThreadBundle thread_bundle_;
};
class FakeApiResource : public ApiResource {
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698