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

Unified Diff: content/browser/storage_partition_impl_unittest.cc

Issue 2565243002: Revert of gpu: Move ShaderDiskCache into //gpu/ipc/host component. (Closed)
Patch Set: Created 4 years 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/browser/storage_partition_impl.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/browser/storage_partition_impl_unittest.cc
diff --git a/content/browser/storage_partition_impl_unittest.cc b/content/browser/storage_partition_impl_unittest.cc
index 828828f6658cd578e0d48d340cb2a346e30cd9bf..dd0e2ad76a4f8c1b8f21abca0618fdfffc319fc6 100644
--- a/content/browser/storage_partition_impl_unittest.cc
+++ b/content/browser/storage_partition_impl_unittest.cc
@@ -13,6 +13,7 @@
#include "base/threading/thread.h"
#include "base/threading/thread_task_runner_handle.h"
#include "content/browser/browser_thread_impl.h"
+#include "content/browser/gpu/shader_disk_cache.h"
#include "content/browser/quota/mock_quota_manager.h"
#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/local_storage_usage_info.h"
@@ -21,7 +22,6 @@
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_browser_thread.h"
#include "content/public/test/test_browser_thread_bundle.h"
-#include "gpu/ipc/host/shader_disk_cache.h"
#include "net/base/test_completion_callback.h"
#include "net/cookies/canonical_cookie.h"
#include "net/cookies/cookie_store.h"
@@ -602,19 +602,19 @@
StoragePartitionShaderClearTest()
: thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP),
browser_context_(new TestBrowserContext()) {
- gpu::ShaderCacheFactory::InitInstance(
+ ShaderCacheFactory::InitInstance(
base::ThreadTaskRunnerHandle::Get(),
BrowserThread::GetTaskRunnerForThread(BrowserThread::CACHE));
- gpu::ShaderCacheFactory::GetInstance()->SetCacheInfo(
+ ShaderCacheFactory::GetInstance()->SetCacheInfo(
kDefaultClientId,
- BrowserContext::GetDefaultStoragePartition(browser_context())
- ->GetPath());
- cache_ = gpu::ShaderCacheFactory::GetInstance()->Get(kDefaultClientId);
+ BrowserContext::GetDefaultStoragePartition(
+ browser_context())->GetPath());
+ cache_ = ShaderCacheFactory::GetInstance()->Get(kDefaultClientId);
}
~StoragePartitionShaderClearTest() override {
cache_ = NULL;
- gpu::ShaderCacheFactory::GetInstance()->RemoveCacheInfo(kDefaultClientId);
+ ShaderCacheFactory::GetInstance()->RemoveCacheInfo(kDefaultClientId);
}
void InitCache() {
@@ -641,7 +641,7 @@
content::TestBrowserThreadBundle thread_bundle_;
std::unique_ptr<TestBrowserContext> browser_context_;
- scoped_refptr<gpu::ShaderDiskCache> cache_;
+ scoped_refptr<ShaderDiskCache> cache_;
};
// Tests ---------------------------------------------------------------------
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698