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

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

Issue 15969025: Generates the DTLS identity in browser process and returns it to render process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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 unified diff | Download patch
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/scoped_temp_dir.h" 5 #include "base/files/scoped_temp_dir.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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 base::Time time; 100 base::Time time;
101 sp->AsyncClearDataBetween(content::StoragePartition::kShaderStorage, 101 sp->AsyncClearDataBetween(content::StoragePartition::kShaderStorage,
102 time, time, cb); 102 time, time, cb);
103 } 103 }
104 104
105 TEST_F(StoragePartitionShaderClearTest, ClearShaderCache) { 105 TEST_F(StoragePartitionShaderClearTest, ClearShaderCache) {
106 InitCache(); 106 InitCache();
107 EXPECT_EQ(1u, Size()); 107 EXPECT_EQ(1u, Size());
108 108
109 TestClosureCallback clear_cb; 109 TestClosureCallback clear_cb;
110 StoragePartitionImpl sp(cache_path(), NULL, NULL, NULL, NULL, NULL, NULL); 110 StoragePartitionImpl sp(cache_path(),
111 NULL,
112 NULL,
113 NULL,
114 NULL,
115 NULL,
116 NULL,
117 scoped_ptr<WebRTCIdentityStore>());
111 base::MessageLoop::current()->PostTask( 118 base::MessageLoop::current()->PostTask(
112 FROM_HERE, 119 FROM_HERE, base::Bind(&ClearData, &sp, clear_cb.callback()));
113 base::Bind(&ClearData, &sp, clear_cb.callback()));
114 clear_cb.WaitForResult(); 120 clear_cb.WaitForResult();
115 EXPECT_EQ(0u, Size()); 121 EXPECT_EQ(0u, Size());
116 } 122 }
117 123
118 } // namespace content 124 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698