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

Side by Side Diff: content/browser/storage_partition_impl_unittest.cc

Issue 678073006: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bogus formatting Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/files/file_util.h" 5 #include "base/files/file_util.h"
6 #include "base/message_loop/message_loop_proxy.h" 6 #include "base/message_loop/message_loop_proxy.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "content/browser/browser_thread_impl.h" 9 #include "content/browser/browser_thread_impl.h"
10 #include "content/browser/gpu/shader_disk_cache.h" 10 #include "content/browser/gpu/shader_disk_cache.h"
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 StoragePartitionShaderClearTest() 357 StoragePartitionShaderClearTest()
358 : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP), 358 : thread_bundle_(content::TestBrowserThreadBundle::IO_MAINLOOP),
359 browser_context_(new TestBrowserContext()) { 359 browser_context_(new TestBrowserContext()) {
360 ShaderCacheFactory::GetInstance()->SetCacheInfo( 360 ShaderCacheFactory::GetInstance()->SetCacheInfo(
361 kDefaultClientId, 361 kDefaultClientId,
362 BrowserContext::GetDefaultStoragePartition( 362 BrowserContext::GetDefaultStoragePartition(
363 browser_context())->GetPath()); 363 browser_context())->GetPath());
364 cache_ = ShaderCacheFactory::GetInstance()->Get(kDefaultClientId); 364 cache_ = ShaderCacheFactory::GetInstance()->Get(kDefaultClientId);
365 } 365 }
366 366
367 virtual ~StoragePartitionShaderClearTest() { 367 ~StoragePartitionShaderClearTest() override {
368 cache_ = NULL; 368 cache_ = NULL;
369 ShaderCacheFactory::GetInstance()->RemoveCacheInfo(kDefaultClientId); 369 ShaderCacheFactory::GetInstance()->RemoveCacheInfo(kDefaultClientId);
370 } 370 }
371 371
372 void InitCache() { 372 void InitCache() {
373 net::TestCompletionCallback available_cb; 373 net::TestCompletionCallback available_cb;
374 int rv = cache_->SetAvailableCallback(available_cb.callback()); 374 int rv = cache_->SetAvailableCallback(available_cb.callback());
375 ASSERT_EQ(net::OK, available_cb.GetResult(rv)); 375 ASSERT_EQ(net::OK, available_cb.GetResult(rv));
376 EXPECT_EQ(0, cache_->Size()); 376 EXPECT_EQ(0, cache_->Size());
377 377
(...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after
921 &run_loop)); 921 &run_loop));
922 run_loop.Run(); 922 run_loop.Run();
923 923
924 // kOrigin1 and kOrigin2 do not have age more than a week. 924 // kOrigin1 and kOrigin2 do not have age more than a week.
925 EXPECT_FALSE(tester.DOMStorageExistsForOrigin(kOrigin1)); 925 EXPECT_FALSE(tester.DOMStorageExistsForOrigin(kOrigin1));
926 EXPECT_FALSE(tester.DOMStorageExistsForOrigin(kOrigin2)); 926 EXPECT_FALSE(tester.DOMStorageExistsForOrigin(kOrigin2));
927 EXPECT_TRUE(tester.DOMStorageExistsForOrigin(kOrigin3)); 927 EXPECT_TRUE(tester.DOMStorageExistsForOrigin(kOrigin3));
928 } 928 }
929 929
930 } // namespace content 930 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/startup_task_runner_unittest.cc ('k') | content/browser/streams/stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698