| Index: extensions/browser/api/file_handlers/directory_util_unittest.cc
|
| diff --git a/chrome/browser/extensions/api/file_handlers/directory_util_unittest.cc b/extensions/browser/api/file_handlers/directory_util_unittest.cc
|
| similarity index 89%
|
| rename from chrome/browser/extensions/api/file_handlers/directory_util_unittest.cc
|
| rename to extensions/browser/api/file_handlers/directory_util_unittest.cc
|
| index c9549c11399c67f67693b2d7fea3dbfcbbabd2e6..0c915190653848071fef470817cc16824c1e3134 100644
|
| --- a/chrome/browser/extensions/api/file_handlers/directory_util_unittest.cc
|
| +++ b/extensions/browser/api/file_handlers/directory_util_unittest.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "chrome/browser/extensions/api/file_handlers/directory_util.h"
|
| +#include "extensions/browser/api/file_handlers/directory_util.h"
|
|
|
| #include <memory>
|
| #include <set>
|
| @@ -12,8 +12,8 @@
|
| #include "base/files/file_path.h"
|
| #include "base/files/file_util.h"
|
| #include "base/run_loop.h"
|
| -#include "chrome/test/base/testing_profile.h"
|
| #include "content/public/browser/browser_thread.h"
|
| +#include "content/public/test/test_browser_context.h"
|
| #include "content/public/test/test_browser_thread_bundle.h"
|
| #include "content/public/test/test_utils.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -44,7 +44,7 @@ class IsDirectoryUtilTest : public testing::Test {
|
| }
|
|
|
| content::TestBrowserThreadBundle thread_bundle_;
|
| - TestingProfile profile_;
|
| + content::TestBrowserContext context_;
|
| base::FilePath dir_path_;
|
| base::FilePath file_path_;
|
| };
|
| @@ -55,7 +55,7 @@ TEST_F(IsDirectoryUtilTest, CollectForEntriesPaths) {
|
| paths.push_back(file_path_);
|
| paths.push_back(base::FilePath::FromUTF8Unsafe(kRandomPath));
|
|
|
| - IsDirectoryCollector collector(&profile_);
|
| + IsDirectoryCollector collector(&context_);
|
| std::set<base::FilePath> result;
|
| collector.CollectForEntriesPaths(
|
| paths, base::Bind(&OnCollectForEntriesPath, &result));
|
|
|