| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "chrome/app/chrome_command_ids.h" | 7 #include "chrome/app/chrome_command_ids.h" |
| 8 #include "chrome/browser/content_settings/cookie_settings.h" | 8 #include "chrome/browser/content_settings/cookie_settings.h" |
| 9 #include "chrome/browser/net/url_fixer_upper.h" | 9 #include "chrome/browser/net/url_fixer_upper.h" |
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 11 #include "chrome/browser/ui/browser_dialogs.h" | 11 #include "chrome/browser/ui/browser_dialogs.h" |
| 12 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 12 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 13 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
| 14 #include "chrome/test/base/in_process_browser_test.h" | 14 #include "chrome/test/base/in_process_browser_test.h" |
| 15 #include "chrome/test/base/ui_test_utils.h" | 15 #include "chrome/test/base/ui_test_utils.h" |
| 16 #include "net/test/spawned_test_server.h" | 16 #include "net/test/spawned_test_server/spawned_test_server.h" |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 const base::FilePath::CharType kDocRoot[] = | 20 const base::FilePath::CharType kDocRoot[] = |
| 21 FILE_PATH_LITERAL("chrome/test/data"); | 21 FILE_PATH_LITERAL("chrome/test/data"); |
| 22 | 22 |
| 23 } // namespace | 23 } // namespace |
| 24 | 24 |
| 25 typedef InProcessBrowserTest CollectedCookiesTest; | 25 typedef InProcessBrowserTest CollectedCookiesTest; |
| 26 | 26 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 56 | 56 |
| 57 // Click on the info link. | 57 // Click on the info link. |
| 58 content::WebContents* web_contents = | 58 content::WebContents* web_contents = |
| 59 browser()->tab_strip_model()->GetActiveWebContents(); | 59 browser()->tab_strip_model()->GetActiveWebContents(); |
| 60 chrome::ShowCollectedCookiesDialog(web_contents); | 60 chrome::ShowCollectedCookiesDialog(web_contents); |
| 61 | 61 |
| 62 // Navigate to another page. | 62 // Navigate to another page. |
| 63 ui_test_utils::NavigateToURL( | 63 ui_test_utils::NavigateToURL( |
| 64 browser(), test_server()->GetURL("files/cookie2.html")); | 64 browser(), test_server()->GetURL("files/cookie2.html")); |
| 65 } | 65 } |
| OLD | NEW |