| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/common/chrome_switches.h" | |
| 6 #include "chrome/test/automation/browser_proxy.h" | 5 #include "chrome/test/automation/browser_proxy.h" |
| 7 #include "chrome/test/automation/tab_proxy.h" | 6 #include "chrome/test/automation/tab_proxy.h" |
| 8 #include "chrome/test/ui/ui_test.h" | 7 #include "chrome/test/ui/ui_test.h" |
| 9 #include "net/base/net_util.h" | 8 #include "net/base/net_util.h" |
| 10 #include "net/test/test_server.h" | 9 #include "net/test/test_server.h" |
| 11 | 10 |
| 12 class NotificationsPermissionTest : public UITest { | 11 class NotificationsPermissionTest : public UITest { |
| 13 public: | 12 public: |
| 14 NotificationsPermissionTest() { | 13 NotificationsPermissionTest() { |
| 15 dom_automation_enabled_ = true; | 14 dom_automation_enabled_ = true; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // in no infobar. | 58 // in no infobar. |
| 60 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, | 59 ASSERT_EQ(AUTOMATION_MSG_NAVIGATION_SUCCESS, |
| 61 tab->NavigateToURL(test_server.GetURL( | 60 tab->NavigateToURL(test_server.GetURL( |
| 62 "files/notifications/notifications_request_inline.html"))); | 61 "files/notifications/notifications_request_inline.html"))); |
| 63 WaitUntilTabCount(1); | 62 WaitUntilTabCount(1); |
| 64 | 63 |
| 65 int info_bar_count; | 64 int info_bar_count; |
| 66 ASSERT_TRUE(tab->GetInfoBarCount(&info_bar_count)); | 65 ASSERT_TRUE(tab->GetInfoBarCount(&info_bar_count)); |
| 67 EXPECT_EQ(0, info_bar_count); | 66 EXPECT_EQ(0, info_bar_count); |
| 68 } | 67 } |
| OLD | NEW |