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

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

Issue 7465041: GTTF: Use a fresh TestingBrowserProcess for each test, part #4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update Created 9 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 | Annotate | Revision Log
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_content_settings_map.h" 5 #include "chrome/browser/geolocation/geolocation_content_settings_map.h"
6 #include "chrome/browser/geolocation/geolocation_settings_state.h" 6 #include "chrome/browser/geolocation/geolocation_settings_state.h"
7 #include "chrome/test/base/testing_profile.h" 7 #include "chrome/test/base/testing_profile.h"
8 #include "chrome/test/testing_browser_process_test.h"
8 #include "content/browser/browser_thread.h" 9 #include "content/browser/browser_thread.h"
9 #include "content/browser/tab_contents/navigation_details.h" 10 #include "content/browser/tab_contents/navigation_details.h"
10 #include "content/browser/tab_contents/navigation_entry.h" 11 #include "content/browser/tab_contents/navigation_entry.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 namespace { 14 namespace {
14 15
15 class GeolocationSettingsStateTests : public testing::Test { 16 class GeolocationSettingsStateTests : public TestingBrowserProcessTest {
16 public: 17 public:
17 GeolocationSettingsStateTests() 18 GeolocationSettingsStateTests()
18 : ui_thread_(BrowserThread::UI, &message_loop_) { 19 : ui_thread_(BrowserThread::UI, &message_loop_) {
19 } 20 }
20 21
21 protected: 22 protected:
22 MessageLoop message_loop_; 23 MessageLoop message_loop_;
23 BrowserThread ui_thread_; 24 BrowserThread ui_thread_;
24 }; 25 };
25 26
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 formatted_host_per_state[CONTENT_SETTING_ALLOW].count( 178 formatted_host_per_state[CONTENT_SETTING_ALLOW].count(
178 url_2.host())); 179 url_2.host()));
179 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size()); 180 EXPECT_EQ(1U, formatted_host_per_state[CONTENT_SETTING_BLOCK].size());
180 EXPECT_EQ(1U, 181 EXPECT_EQ(1U,
181 formatted_host_per_state[CONTENT_SETTING_BLOCK].count( 182 formatted_host_per_state[CONTENT_SETTING_BLOCK].count(
182 url_1.spec())); 183 url_1.spec()));
183 } 184 }
184 185
185 186
186 } // namespace 187 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698