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/test/base/ui_test_utils.h" | 8 #include "chrome/test/base/ui_test_utils.h" |
9 #include "chrome/test/base/test_launcher_utils.h" | 9 #include "chrome/test/base/test_launcher_utils.h" |
10 #include "content/public/browser/notification_service.h" | 10 #include "content/public/browser/notification_service.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 // we have only one per browser tag and they are not the same. | 104 // we have only one per browser tag and they are not the same. |
105 automation_util::GetCookies(GURL("http://localhost"), | 105 automation_util::GetCookies(GURL("http://localhost"), |
106 source1->GetWebContents(), | 106 source1->GetWebContents(), |
107 &cookie_size, &cookie_value); | 107 &cookie_size, &cookie_value); |
108 EXPECT_EQ("guest1=true", cookie_value); | 108 EXPECT_EQ("guest1=true", cookie_value); |
109 | 109 |
110 automation_util::GetCookies(GURL("http://localhost"), | 110 automation_util::GetCookies(GURL("http://localhost"), |
111 source2->GetWebContents(), | 111 source2->GetWebContents(), |
112 &cookie_size, &cookie_value); | 112 &cookie_size, &cookie_value); |
113 EXPECT_EQ("guest2=true", cookie_value); | 113 EXPECT_EQ("guest2=true", cookie_value); |
| 114 CloseShellWindowsAndWaitForAppToExit(); |
114 } | 115 } |
OLD | NEW |