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/scoped_vector.h" | 5 #include "base/scoped_vector.h" |
6 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" | 6 #include "chrome/browser/geolocation/geolocation_content_settings_map.h" |
7 #include "chrome/browser/tab_contents/infobar_delegate.h" | 7 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
8 #include "chrome/common/notification_details.h" | 8 #include "chrome/common/notification_details.h" |
9 #include "chrome/common/notification_type.h" | 9 #include "chrome/common/notification_type.h" |
10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
11 #include "chrome/test/testing_profile.h" | 11 #include "chrome/test/testing_profile.h" |
12 #include "content/browser/browser_thread.h" | 12 #include "content/browser/browser_thread.h" |
13 #include "content/browser/geolocation/arbitrator_dependency_factories_for_test.h
" | 13 #include "content/browser/geolocation/arbitrator_dependency_factories_for_test.h
" |
14 #include "content/browser/geolocation/geolocation_permission_context.h" | 14 #include "content/browser/geolocation/geolocation_permission_context.h" |
15 #include "content/browser/geolocation/location_arbitrator.h" | 15 #include "content/browser/geolocation/location_arbitrator.h" |
16 #include "content/browser/geolocation/location_provider.h" | 16 #include "content/browser/geolocation/location_provider.h" |
17 #include "content/browser/geolocation/mock_location_provider.h" | 17 #include "content/browser/geolocation/mock_location_provider.h" |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 // Ensure only one infobar is created. | 450 // Ensure only one infobar is created. |
451 EXPECT_EQ(1U, contents()->infobar_count()); | 451 EXPECT_EQ(1U, contents()->infobar_count()); |
452 ConfirmInfoBarDelegate* infobar_0 = | 452 ConfirmInfoBarDelegate* infobar_0 = |
453 contents()->GetInfoBarDelegateAt(0)->AsConfirmInfoBarDelegate(); | 453 contents()->GetInfoBarDelegateAt(0)->AsConfirmInfoBarDelegate(); |
454 ASSERT_TRUE(infobar_0); | 454 ASSERT_TRUE(infobar_0); |
455 string16 text_0 = infobar_0->GetMessageText(); | 455 string16 text_0 = infobar_0->GetMessageText(); |
456 | 456 |
457 // Delete the tab contents. | 457 // Delete the tab contents. |
458 DeleteContents(); | 458 DeleteContents(); |
459 } | 459 } |
OLD | NEW |