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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
(...skipping 10 matching lines...) Expand all
21 #include "content/browser/geolocation/location_provider.h" 21 #include "content/browser/geolocation/location_provider.h"
22 #include "content/browser/geolocation/mock_location_provider.h" 22 #include "content/browser/geolocation/mock_location_provider.h"
23 #include "content/browser/renderer_host/mock_render_process_host.h" 23 #include "content/browser/renderer_host/mock_render_process_host.h"
24 #include "content/browser/tab_contents/test_tab_contents.h" 24 #include "content/browser/tab_contents/test_tab_contents.h"
25 #include "content/common/geolocation_messages.h" 25 #include "content/common/geolocation_messages.h"
26 #include "content/public/browser/notification_registrar.h" 26 #include "content/public/browser/notification_registrar.h"
27 #include "content/public/browser/notification_service.h" 27 #include "content/public/browser/notification_service.h"
28 #include "content/test/test_browser_thread.h" 28 #include "content/test/test_browser_thread.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
30 30
31 using content::BrowserThread;
32
31 // ClosedDelegateTracker ------------------------------------------------------ 33 // ClosedDelegateTracker ------------------------------------------------------
32 34
33 namespace { 35 namespace {
34 36
35 // We need to track which infobars were closed. 37 // We need to track which infobars were closed.
36 class ClosedDelegateTracker : public content::NotificationObserver { 38 class ClosedDelegateTracker : public content::NotificationObserver {
37 public: 39 public:
38 ClosedDelegateTracker(); 40 ClosedDelegateTracker();
39 virtual ~ClosedDelegateTracker(); 41 virtual ~ClosedDelegateTracker();
40 42
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 // Ensure only one infobar is created. 531 // Ensure only one infobar is created.
530 ASSERT_EQ(1U, infobar_tab_helper()->infobar_count()); 532 ASSERT_EQ(1U, infobar_tab_helper()->infobar_count());
531 ConfirmInfoBarDelegate* infobar_0 = infobar_tab_helper()-> 533 ConfirmInfoBarDelegate* infobar_0 = infobar_tab_helper()->
532 GetInfoBarDelegateAt(0)->AsConfirmInfoBarDelegate(); 534 GetInfoBarDelegateAt(0)->AsConfirmInfoBarDelegate();
533 ASSERT_TRUE(infobar_0); 535 ASSERT_TRUE(infobar_0);
534 536
535 // Delete the tab contents. 537 // Delete the tab contents.
536 DeleteContents(); 538 DeleteContents();
537 infobar_0->InfoBarClosed(); 539 infobar_0->InfoBarClosed();
538 } 540 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698