| 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 "chrome/browser/geolocation/geolocation_permission_context.h" | 5 #include "chrome/browser/geolocation/geolocation_permission_context.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <set> | 9 #include <set> |
| 8 #include <string> | 10 #include <string> |
| 9 #include <utility> | 11 #include <utility> |
| 10 | 12 |
| 11 #include "base/bind.h" | 13 #include "base/bind.h" |
| 12 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 13 #include "base/containers/hash_tables.h" | 15 #include "base/containers/hash_tables.h" |
| 14 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
| 15 #include "base/id_map.h" | 17 #include "base/id_map.h" |
| 16 #include "base/memory/scoped_vector.h" | 18 #include "base/memory/scoped_vector.h" |
| (...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 963 // it is the embedder. | 965 // it is the embedder. |
| 964 EXPECT_EQ(map->GetLastUsage(requesting_frame_0.GetOrigin(), | 966 EXPECT_EQ(map->GetLastUsage(requesting_frame_0.GetOrigin(), |
| 965 requesting_frame_0.GetOrigin(), | 967 requesting_frame_0.GetOrigin(), |
| 966 CONTENT_SETTINGS_TYPE_GEOLOCATION).ToDoubleT(), | 968 CONTENT_SETTINGS_TYPE_GEOLOCATION).ToDoubleT(), |
| 967 13); | 969 13); |
| 968 EXPECT_EQ(map->GetLastUsage(requesting_frame_1.GetOrigin(), | 970 EXPECT_EQ(map->GetLastUsage(requesting_frame_1.GetOrigin(), |
| 969 requesting_frame_0.GetOrigin(), | 971 requesting_frame_0.GetOrigin(), |
| 970 CONTENT_SETTINGS_TYPE_GEOLOCATION).ToDoubleT(), | 972 CONTENT_SETTINGS_TYPE_GEOLOCATION).ToDoubleT(), |
| 971 11); | 973 11); |
| 972 } | 974 } |
| OLD | NEW |