| 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 <stddef.h> |
| 6 |
| 5 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
| 6 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
| 9 #include "base/macros.h" |
| 7 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 8 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 9 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 10 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/values.h" | 15 #include "base/values.h" |
| 13 #include "content/browser/geolocation/fake_access_token_store.h" | 16 #include "content/browser/geolocation/fake_access_token_store.h" |
| 14 #include "content/browser/geolocation/location_arbitrator_impl.h" | 17 #include "content/browser/geolocation/location_arbitrator_impl.h" |
| 15 #include "content/browser/geolocation/network_location_provider.h" | 18 #include "content/browser/geolocation/network_location_provider.h" |
| 16 #include "content/browser/geolocation/wifi_data_provider.h" | 19 #include "content/browser/geolocation/wifi_data_provider.h" |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 EXPECT_TRUE(cache.FindPosition(CreateReferenceWifiScanData(1))); | 548 EXPECT_TRUE(cache.FindPosition(CreateReferenceWifiScanData(1))); |
| 546 } else { | 549 } else { |
| 547 const int evicted = i - kCacheSize; | 550 const int evicted = i - kCacheSize; |
| 548 EXPECT_FALSE(cache.FindPosition(CreateReferenceWifiScanData(evicted))); | 551 EXPECT_FALSE(cache.FindPosition(CreateReferenceWifiScanData(evicted))); |
| 549 EXPECT_TRUE(cache.FindPosition(CreateReferenceWifiScanData(evicted + 1))); | 552 EXPECT_TRUE(cache.FindPosition(CreateReferenceWifiScanData(evicted + 1))); |
| 550 } | 553 } |
| 551 } | 554 } |
| 552 } | 555 } |
| 553 | 556 |
| 554 } // namespace content | 557 } // namespace content |
| OLD | NEW |