OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/bind.h" | 5 #include "base/bind.h" |
6 #include "base/file_util.h" | 6 #include "base/files/file_util.h" |
7 #include "base/files/scoped_temp_dir.h" | 7 #include "base/files/scoped_temp_dir.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
12 #include "base/stl_util.h" | 12 #include "base/stl_util.h" |
13 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
14 #include "base/time/time.h" | 14 #include "base/time/time.h" |
15 #include "chrome/browser/net/quota_policy_channel_id_store.h" | 15 #include "chrome/browser/net/quota_policy_channel_id_store.h" |
16 #include "content/public/test/mock_special_storage_policy.h" | 16 #include "content/public/test/mock_special_storage_policy.h" |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 store_ = new QuotaPolicyChannelIDStore( | 194 store_ = new QuotaPolicyChannelIDStore( |
195 temp_dir_.path().Append(kTestChannelIDFilename), | 195 temp_dir_.path().Append(kTestChannelIDFilename), |
196 base::MessageLoopProxy::current(), | 196 base::MessageLoopProxy::current(), |
197 NULL); | 197 NULL); |
198 | 198 |
199 // Reload and check that the "foo.com" cert has been removed. | 199 // Reload and check that the "foo.com" cert has been removed. |
200 Load(&channel_ids); | 200 Load(&channel_ids); |
201 ASSERT_EQ(1U, channel_ids.size()); | 201 ASSERT_EQ(1U, channel_ids.size()); |
202 ASSERT_EQ("google.com", channel_ids[0]->server_identifier()); | 202 ASSERT_EQ("google.com", channel_ids[0]->server_identifier()); |
203 } | 203 } |
OLD | NEW |