Avi Drissman | 4a8573c | 2022-09-09 19:35:54 | [diff] [blame] | 1 | // Copyright 2012 The Chromium Authors |
tapted | 3888fbf | 2017-01-12 02:55:21 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include <string> |
| 6 | |
| 7 | #include "base/command_line.h" |
| 8 | #include "chrome/app/chrome_command_ids.h" |
| 9 | #include "chrome/browser/content_settings/cookie_settings_factory.h" |
| 10 | #include "chrome/browser/ui/browser.h" |
| 11 | #include "chrome/browser/ui/tab_dialogs.h" |
| 12 | #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 13 | #include "chrome/browser/ui/test/test_browser_dialog.h" |
| 14 | #include "chrome/common/url_constants.h" |
| 15 | #include "chrome/test/base/in_process_browser_test.h" |
| 16 | #include "chrome/test/base/ui_test_utils.h" |
| 17 | #include "components/content_settings/core/browser/cookie_settings.h" |
Peter Kasting | 919ce65 | 2020-05-07 10:22:36 | [diff] [blame] | 18 | #include "content/public/test/browser_test.h" |
tapted | 3888fbf | 2017-01-12 02:55:21 | [diff] [blame] | 19 | #include "net/test/embedded_test_server/embedded_test_server.h" |
tapted | 3888fbf | 2017-01-12 02:55:21 | [diff] [blame] | 20 | |
| 21 | class CollectedCookiesTest : public DialogBrowserTest { |
| 22 | public: |
Sorin Jianu | 7648695 | 2024-11-28 04:21:50 | [diff] [blame] | 23 | CollectedCookiesTest() = default; |
tapted | 3888fbf | 2017-01-12 02:55:21 | [diff] [blame] | 24 | |
Peter Boström | c75681ac | 2021-09-24 16:58:41 | [diff] [blame] | 25 | CollectedCookiesTest(const CollectedCookiesTest&) = delete; |
| 26 | CollectedCookiesTest& operator=(const CollectedCookiesTest&) = delete; |
| 27 | |
tapted | 3d35b33 | 2017-02-10 00:17:22 | [diff] [blame] | 28 | // DialogBrowserTest: |
Peter Kasting | cf49b7b79 | 2017-12-18 23:27:45 | [diff] [blame] | 29 | void ShowUi(const std::string& name) override { |
Ahmed Fakhry | 2f87779 | 2018-10-10 19:34:49 | [diff] [blame] | 30 | // Web modal dialogs' bounds may exceed the display's work area. |
| 31 | // https://crbug.com/893292. |
| 32 | set_should_verify_dialog_bounds(false); |
| 33 | |
tapted | 3888fbf | 2017-01-12 02:55:21 | [diff] [blame] | 34 | ASSERT_TRUE(embedded_test_server()->Start()); |
| 35 | |
|
|