OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 class GeolocationBrowserTest : public InProcessBrowserTest { | 235 class GeolocationBrowserTest : public InProcessBrowserTest { |
236 public: | 236 public: |
237 enum InitializationOptions { | 237 enum InitializationOptions { |
238 INITIALIZATION_NONE, | 238 INITIALIZATION_NONE, |
239 INITIALIZATION_OFFTHERECORD, | 239 INITIALIZATION_OFFTHERECORD, |
240 INITIALIZATION_NEWTAB, | 240 INITIALIZATION_NEWTAB, |
241 INITIALIZATION_IFRAMES, | 241 INITIALIZATION_IFRAMES, |
242 }; | 242 }; |
243 | 243 |
244 GeolocationBrowserTest(); | 244 GeolocationBrowserTest(); |
245 virtual ~GeolocationBrowserTest(); | 245 ~GeolocationBrowserTest() override; |
246 | 246 |
247 // InProcessBrowserTest: | 247 // InProcessBrowserTest: |
248 void SetUpOnMainThread() override; | 248 void SetUpOnMainThread() override; |
249 void TearDownInProcessBrowserTestFixture() override; | 249 void TearDownInProcessBrowserTestFixture() override; |
250 | 250 |
251 Browser* current_browser() { return current_browser_; } | 251 Browser* current_browser() { return current_browser_; } |
252 void set_html_for_tests(const std::string& html_for_tests) { | 252 void set_html_for_tests(const std::string& html_for_tests) { |
253 html_for_tests_ = html_for_tests; | 253 html_for_tests_ = html_for_tests; |
254 } | 254 } |
255 content::RenderFrameHost* frame_host() const { return render_frame_host_; } | 255 content::RenderFrameHost* frame_host() const { return render_frame_host_; } |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
809 // Last usage has been updated. | 809 // Last usage has been updated. |
810 EXPECT_EQ(current_browser() | 810 EXPECT_EQ(current_browser() |
811 ->profile() | 811 ->profile() |
812 ->GetHostContentSettingsMap() | 812 ->GetHostContentSettingsMap() |
813 ->GetLastUsage(current_url().GetOrigin(), | 813 ->GetLastUsage(current_url().GetOrigin(), |
814 current_url().GetOrigin(), | 814 current_url().GetOrigin(), |
815 CONTENT_SETTINGS_TYPE_GEOLOCATION) | 815 CONTENT_SETTINGS_TYPE_GEOLOCATION) |
816 .ToDoubleT(), | 816 .ToDoubleT(), |
817 13); | 817 13); |
818 } | 818 } |
OLD | NEW |