Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(508)

Side by Side Diff: chrome/browser/geolocation/geolocation_permission_context_unittest.cc

Issue 6598057: Split infobar_delegate.[cc,h] into separate pieces for the different classes defined within, so that (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix wrong include Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/geolocation_permission_context.cc ('k') | chrome/browser/google/google_url_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698