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

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

Issue 3129007: FBTF: Forward declare everything possible in testing_profile.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: argh mac problems now Created 10 years, 4 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
OLDNEW
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/browser/geolocation/geolocation_permission_context.h" 5 #include "chrome/browser/geolocation/geolocation_permission_context.h"
6 6
7 #include "base/scoped_vector.h" 7 #include "base/scoped_vector.h"
8 #include "chrome/browser/chrome_thread.h"
9 #include "chrome/browser/geolocation/geolocation_content_settings_map.h"
10 #include "chrome/browser/geolocation/geolocation_permission_context.h"
8 #include "chrome/browser/geolocation/location_arbitrator.h" 11 #include "chrome/browser/geolocation/location_arbitrator.h"
9 #include "chrome/browser/geolocation/location_provider.h" 12 #include "chrome/browser/geolocation/location_provider.h"
10 #include "chrome/browser/geolocation/mock_location_provider.h" 13 #include "chrome/browser/geolocation/mock_location_provider.h"
11 #include "chrome/browser/renderer_host/mock_render_process_host.h" 14 #include "chrome/browser/renderer_host/mock_render_process_host.h"
12 #include "chrome/browser/renderer_host/test/test_render_view_host.h" 15 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
13 #include "chrome/browser/tab_contents/infobar_delegate.h" 16 #include "chrome/browser/tab_contents/infobar_delegate.h"
14 #include "chrome/common/notification_details.h" 17 #include "chrome/common/notification_details.h"
15 #include "chrome/common/notification_type.h" 18 #include "chrome/common/notification_type.h"
16 #include "chrome/common/render_messages.h" 19 #include "chrome/common/render_messages.h"
17 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 ASSERT_TRUE(infobar_1); 413 ASSERT_TRUE(infobar_1);
411 infobar_1->Accept(); 414 infobar_1->Accept();
412 CheckPermissionMessageSentForTab(0, bridge_id() + 1, true); 415 CheckPermissionMessageSentForTab(0, bridge_id() + 1, true);
413 extra_tabs_[0]->RemoveInfoBar(infobar_1); 416 extra_tabs_[0]->RemoveInfoBar(infobar_1);
414 EXPECT_EQ(infobar_1, 417 EXPECT_EQ(infobar_1,
415 extra_tabs_[0]->removed_infobar_delegate_); 418 extra_tabs_[0]->removed_infobar_delegate_);
416 infobar_1->InfoBarClosed(); 419 infobar_1->InfoBarClosed();
417 420
418 extra_tabs_.reset(); 421 extra_tabs_.reset();
419 } 422 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698