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

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

Issue 2658693005: Fixes compile and gn-check errors with enable_plugins=false. (Closed)
Patch Set: Created 3 years, 11 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 | « no previous file | content/ppapi_plugin/BUILD.gn » ('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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include "base/files/file_util.h" 8 #include "base/files/file_util.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 15 matching lines...) Expand all
26 #include "net/cookies/canonical_cookie.h" 26 #include "net/cookies/canonical_cookie.h"
27 #include "net/cookies/cookie_store.h" 27 #include "net/cookies/cookie_store.h"
28 #include "net/url_request/url_request_context.h" 28 #include "net/url_request/url_request_context.h"
29 #include "net/url_request/url_request_context_getter.h" 29 #include "net/url_request/url_request_context_getter.h"
30 #include "ppapi/features/features.h" 30 #include "ppapi/features/features.h"
31 #include "storage/browser/quota/quota_manager.h" 31 #include "storage/browser/quota/quota_manager.h"
32 #include "testing/gtest/include/gtest/gtest.h" 32 #include "testing/gtest/include/gtest/gtest.h"
33 33
34 #if BUILDFLAG(ENABLE_PLUGINS) 34 #if BUILDFLAG(ENABLE_PLUGINS)
35 #include "base/memory/ptr_util.h" 35 #include "base/memory/ptr_util.h"
36 #include "ppapi/shared_impl/ppapi_constants.h" 36 #include "ppapi/shared_impl/ppapi_constants.h" // nogncheck
37 #include "storage/browser/fileapi/async_file_util.h" 37 #include "storage/browser/fileapi/async_file_util.h"
38 #include "storage/browser/fileapi/file_system_context.h" 38 #include "storage/browser/fileapi/file_system_context.h"
39 #include "storage/browser/fileapi/file_system_operation_context.h" 39 #include "storage/browser/fileapi/file_system_operation_context.h"
40 #include "storage/browser/fileapi/isolated_context.h" 40 #include "storage/browser/fileapi/isolated_context.h"
41 #include "storage/common/fileapi/file_system_util.h" 41 #include "storage/common/fileapi/file_system_util.h"
42 #endif // BUILDFLAG(ENABLE_PLUGINS) 42 #endif // BUILDFLAG(ENABLE_PLUGINS)
43 43
44 using net::CanonicalCookie; 44 using net::CanonicalCookie;
45 45
46 namespace content { 46 namespace content {
(...skipping 1319 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 CanonicalCookie::Create(url2, "A=B;domain=.example.com", now, options)); 1366 CanonicalCookie::Create(url2, "A=B;domain=.example.com", now, options));
1367 invalid_cookies.push_back(CanonicalCookie::Create(url3, "A=B", now, options)); 1367 invalid_cookies.push_back(CanonicalCookie::Create(url3, "A=B", now, options));
1368 1368
1369 for (const auto& cookie : valid_cookies) 1369 for (const auto& cookie : valid_cookies)
1370 EXPECT_TRUE(predicate.Run(*cookie)) << cookie->DebugString(); 1370 EXPECT_TRUE(predicate.Run(*cookie)) << cookie->DebugString();
1371 for (const auto& cookie : invalid_cookies) 1371 for (const auto& cookie : invalid_cookies)
1372 EXPECT_FALSE(predicate.Run(*cookie)) << cookie->DebugString(); 1372 EXPECT_FALSE(predicate.Run(*cookie)) << cookie->DebugString();
1373 } 1373 }
1374 1374
1375 } // namespace content 1375 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/ppapi_plugin/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698