1 // Copyright 2019 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CONTENT_BROWSER_BROWSING_DATA_BROWSING_DATA_TEST_UTILS_H_
6 #define CONTENT_BROWSER_BROWSING_DATA_BROWSING_DATA_TEST_UTILS_H_
7 
8 #include <string>
9 #include <vector>
10 
11 #include "services/network/public/mojom/cookie_manager.mojom.h"
12 
13 namespace content {
14 class BrowserContext;
15 
16 network::mojom::CookieManager* GetCookieManager(
17     BrowserContext* browser_context);
18 
19 void CreateCookieForTest(
20     const std::string& cookie_name,
21     const std::string& cookie_domain,
22     net::CookieSameSite same_site,
23     net::CookieOptions::SameSiteCookieContext cookie_context,
24     bool is_cookie_secure,
25     BrowserContext* browser_context);
26 
27 std::vector<net::CanonicalCookie> GetAllCookies(
28     BrowserContext* browser_context);
29 
30 }  // namespace content
31 
32 #endif  // CONTENT_BROWSER_BROWSING_DATA_BROWSING_DATA_TEST_UTILS_H_
33