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 "chrome/browser/automation/automation_util.h" | 5 #include "chrome/browser/automation/automation_util.h" |
6 #include "chrome/browser/extensions/platform_app_browsertest_util.h" | 6 #include "chrome/browser/extensions/platform_app_browsertest_util.h" |
7 #include "chrome/browser/ui/browser_tabstrip.h" | 7 #include "chrome/browser/ui/browser_tabstrip.h" |
8 #include "chrome/common/chrome_switches.h" | 8 #include "chrome/common/chrome_switches.h" |
9 #include "chrome/test/base/ui_test_utils.h" | 9 #include "chrome/test/base/ui_test_utils.h" |
10 #include "chrome/test/base/test_launcher_utils.h" | 10 #include "chrome/test/base/test_launcher_utils.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 // tags. | 109 // tags. |
110 automation_util::GetCookies(GURL("http://localhost"), | 110 automation_util::GetCookies(GURL("http://localhost"), |
111 source1->GetWebContents(), | 111 source1->GetWebContents(), |
112 &cookie_size, &cookie_value); | 112 &cookie_size, &cookie_value); |
113 EXPECT_EQ("guest1=true; guest2=true", cookie_value); | 113 EXPECT_EQ("guest1=true; guest2=true", cookie_value); |
114 | 114 |
115 automation_util::GetCookies(GURL("http://localhost"), | 115 automation_util::GetCookies(GURL("http://localhost"), |
116 source2->GetWebContents(), | 116 source2->GetWebContents(), |
117 &cookie_size, &cookie_value); | 117 &cookie_size, &cookie_value); |
118 EXPECT_EQ("guest1=true; guest2=true", cookie_value); | 118 EXPECT_EQ("guest1=true; guest2=true", cookie_value); |
| 119 CloseShellWindowsAndWaitForAppToExit(); |
119 } | 120 } |
OLD | NEW |