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

Side by Side Diff: content/browser/net/quota_policy_cookie_store_unittest.cc

Issue 2090463002: Move net/base/test_data_directory.[cc,h] to net/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/files/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/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
11 #include "base/synchronization/waitable_event.h" 11 #include "base/synchronization/waitable_event.h"
12 #include "base/test/sequenced_worker_pool_owner.h" 12 #include "base/test/sequenced_worker_pool_owner.h"
13 #include "base/threading/sequenced_worker_pool.h" 13 #include "base/threading/sequenced_worker_pool.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "content/browser/net/quota_policy_cookie_store.h" 15 #include "content/browser/net/quota_policy_cookie_store.h"
16 #include "content/public/test/mock_special_storage_policy.h" 16 #include "content/public/test/mock_special_storage_policy.h"
17 #include "content/public/test/test_browser_thread_bundle.h" 17 #include "content/public/test/test_browser_thread_bundle.h"
18 #include "net/base/test_data_directory.h"
19 #include "net/cookies/cookie_util.h" 18 #include "net/cookies/cookie_util.h"
20 #include "net/ssl/ssl_client_cert_type.h" 19 #include "net/ssl/ssl_client_cert_type.h"
21 #include "net/test/cert_test_util.h" 20 #include "net/test/cert_test_util.h"
21 #include "net/test/test_data_directory.h"
22 #include "sql/statement.h" 22 #include "sql/statement.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 namespace { 25 namespace {
26 const base::FilePath::CharType kTestCookiesFilename[] = 26 const base::FilePath::CharType kTestCookiesFilename[] =
27 FILE_PATH_LITERAL("Cookies"); 27 FILE_PATH_LITERAL("Cookies");
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 namespace { 31 namespace {
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 // Reload and test for persistence. 281 // Reload and test for persistence.
282 STLDeleteElements(&cookies); 282 STLDeleteElements(&cookies);
283 CreateAndLoad(storage_policy.get(), &cookies); 283 CreateAndLoad(storage_policy.get(), &cookies);
284 EXPECT_EQ(0U, cookies.size()); 284 EXPECT_EQ(0U, cookies.size());
285 285
286 STLDeleteElements(&cookies); 286 STLDeleteElements(&cookies);
287 } 287 }
288 288
289 } // namespace 289 } // namespace
290 } // namespace content 290 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698