OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/command_line.h" | 6 #include "base/command_line.h" |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/macros.h" |
| 9 #include "build/build_config.h" |
8 #include "chrome/browser/chrome_notification_types.h" | 10 #include "chrome/browser/chrome_notification_types.h" |
9 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/browser/ui/browser_commands.h" | 13 #include "chrome/browser/ui/browser_commands.h" |
12 #include "chrome/browser/ui/browser_finder.h" | 14 #include "chrome/browser/ui/browser_finder.h" |
13 #include "chrome/browser/ui/browser_iterator.h" | 15 #include "chrome/browser/ui/browser_iterator.h" |
14 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 16 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
15 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/test/base/in_process_browser_test.h" | 18 #include "chrome/test/base/in_process_browser_test.h" |
17 #include "chrome/test/base/ui_test_utils.h" | 19 #include "chrome/test/base/ui_test_utils.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 browser()->tab_strip_model()->GetActiveWebContents(), | 68 browser()->tab_strip_model()->GetActiveWebContents(), |
67 content::RenderProcessHostWatcher::WATCH_FOR_HOST_DESTRUCTION); | 69 content::RenderProcessHostWatcher::WATCH_FOR_HOST_DESTRUCTION); |
68 // Close the tab. This should launch the unload handler, which sets a cookie | 70 // Close the tab. This should launch the unload handler, which sets a cookie |
69 // that's stored to disk. | 71 // that's stored to disk. |
70 chrome::CloseTab(browser()); | 72 chrome::CloseTab(browser()); |
71 renderer_shutdown_observer.Wait(); | 73 renderer_shutdown_observer.Wait(); |
72 | 74 |
73 EXPECT_EQ("unloaded=ohyeah", content::GetCookies(browser()->profile(), url)); | 75 EXPECT_EQ("unloaded=ohyeah", content::GetCookies(browser()->profile(), url)); |
74 } | 76 } |
75 #endif | 77 #endif |
OLD | NEW |