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

Side by Side Diff: chrome/browser/geolocation/geolocation_settings_state_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 <string> 5 #include <string>
6 6
7 #include "chrome/browser/content_settings/host_content_settings_map.h" 7 #include "chrome/browser/content_settings/host_content_settings_map.h"
8 #include "chrome/browser/geolocation/geolocation_settings_state.h" 8 #include "chrome/browser/geolocation/geolocation_settings_state.h"
9 #include "chrome/test/base/testing_profile.h" 9 #include "chrome/test/base/testing_profile.h"
10 #include "content/browser/tab_contents/navigation_details.h" 10 #include "content/browser/tab_contents/navigation_details.h"
11 #include "content/browser/tab_contents/navigation_entry.h" 11 #include "content/browser/tab_contents/navigation_entry.h"
12 #include "content/test/test_browser_thread.h" 12 #include "content/test/test_browser_thread.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 using content::BrowserThread;
16
15 namespace { 17 namespace {
16 18
17 class GeolocationSettingsStateTests : public testing::Test { 19 class GeolocationSettingsStateTests : public testing::Test {
18 public: 20 public:
19 GeolocationSettingsStateTests() 21 GeolocationSettingsStateTests()
20 : ui_thread_(BrowserThread::UI, &message_loop_) { 22 : ui_thread_(BrowserThread::UI, &message_loop_) {
21 } 23 }
22 24
23 protected: 25 protected:
24 MessageLoop message_loop_; 26 MessageLoop message_loop_;
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 formatted_host_per_state[CONTENT_SETTING_ALLOW].count( 201 formatted_host_per_state[CONTENT_SETTING_ALLOW].count(
200 url_2.host())); 202 url_2.host()));
201 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size()); 203 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size());
202 EXPECT_EQ(1U, 204 EXPECT_EQ(1U,
203 formatted_host_per_state[CONTENT_SETTING_BLOCK].count( 205 formatted_host_per_state[CONTENT_SETTING_BLOCK].count(
204 url_1.spec())); 206 url_1.spec()));
205 } 207 }
206 208
207 209
208 } // namespace 210 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698