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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 // tags. | 106 // tags. |
107 automation_util::GetCookies(GURL("http://localhost"), | 107 automation_util::GetCookies(GURL("http://localhost"), |
108 source1->GetWebContents(), | 108 source1->GetWebContents(), |
109 &cookie_size, &cookie_value); | 109 &cookie_size, &cookie_value); |
110 EXPECT_EQ("guest1=true; guest2=true", cookie_value); | 110 EXPECT_EQ("guest1=true; guest2=true", cookie_value); |
111 | 111 |
112 automation_util::GetCookies(GURL("http://localhost"), | 112 automation_util::GetCookies(GURL("http://localhost"), |
113 source2->GetWebContents(), | 113 source2->GetWebContents(), |
114 &cookie_size, &cookie_value); | 114 &cookie_size, &cookie_value); |
115 EXPECT_EQ("guest1=true; guest2=true", cookie_value); | 115 EXPECT_EQ("guest1=true; guest2=true", cookie_value); |
116 CloseShellWindowsAndWaitForAppToExit(); | |
117 } | 116 } |
OLD | NEW |