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

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

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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 <string> 5 #include <string>
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "chrome/browser/content_settings/host_content_settings_map.h" 8 #include "chrome/browser/content_settings/host_content_settings_map.h"
9 #include "chrome/browser/geolocation/geolocation_settings_state.h" 9 #include "chrome/browser/geolocation/geolocation_settings_state.h"
10 #include "chrome/test/base/testing_profile.h" 10 #include "chrome/test/base/testing_profile.h"
11 #include "content/public/browser/navigation_details.h" 11 #include "content/public/browser/navigation_details.h"
12 #include "content/public/browser/navigation_entry.h" 12 #include "content/public/browser/navigation_entry.h"
13 #include "content/test/test_browser_thread.h" 13 #include "content/public/test/test_browser_thread.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 using content::BrowserThread; 16 using content::BrowserThread;
17 using content::NavigationEntry; 17 using content::NavigationEntry;
18 18
19 namespace { 19 namespace {
20 20
21 class GeolocationSettingsStateTests : public testing::Test { 21 class GeolocationSettingsStateTests : public testing::Test {
22 public: 22 public:
23 GeolocationSettingsStateTests() 23 GeolocationSettingsStateTests()
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 formatted_host_per_state[CONTENT_SETTING_ALLOW].count( 203 formatted_host_per_state[CONTENT_SETTING_ALLOW].count(
204 url_2.host())); 204 url_2.host()));
205 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size()); 205 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size());
206 EXPECT_EQ(1U, 206 EXPECT_EQ(1U,
207 formatted_host_per_state[CONTENT_SETTING_BLOCK].count( 207 formatted_host_per_state[CONTENT_SETTING_BLOCK].count(
208 url_1.spec())); 208 url_1.spec()));
209 } 209 }
210 210
211 211
212 } // namespace 212 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698