| OLD | NEW |
| 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 | 6 |
| 7 #include "chrome/browser/pref_service.h" | 7 #include "chrome/browser/prefs/pref_service.h" |
| 8 #include "chrome/common/pref_names.h" | 8 #include "chrome/common/pref_names.h" |
| 9 #include "chrome/test/testing_profile.h" | 9 #include "chrome/test/testing_profile.h" |
| 10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 11 | 11 |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 class GeolocationContentSettingsMapTests : public testing::Test { | 15 class GeolocationContentSettingsMapTests : public testing::Test { |
| 16 public: | 16 public: |
| 17 GeolocationContentSettingsMapTests() | 17 GeolocationContentSettingsMapTests() |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 GURL("http://bad-embedder"))); | 233 GURL("http://bad-embedder"))); |
| 234 EXPECT_EQ(CONTENT_SETTING_ASK, | 234 EXPECT_EQ(CONTENT_SETTING_ASK, |
| 235 map->GetContentSetting(GURL("http://a/"), | 235 map->GetContentSetting(GURL("http://a/"), |
| 236 GURL("http://example.com"))); | 236 GURL("http://example.com"))); |
| 237 EXPECT_EQ(CONTENT_SETTING_ASK, | 237 EXPECT_EQ(CONTENT_SETTING_ASK, |
| 238 map->GetContentSetting(GURL("http://bad_requester/"), | 238 map->GetContentSetting(GURL("http://bad_requester/"), |
| 239 GURL("http://b/"))); | 239 GURL("http://b/"))); |
| 240 } | 240 } |
| 241 | 241 |
| 242 } // namespace | 242 } // namespace |
| OLD | NEW |