OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "base/stringprintf.h" | 6 #include "base/strings/stringprintf.h" |
7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
8 #include "chromeos/dbus/dbus_thread_manager.h" | 8 #include "chromeos/dbus/dbus_thread_manager.h" |
9 #include "chromeos/dbus/shill_manager_client.h" | 9 #include "chromeos/dbus/shill_manager_client.h" |
10 #include "chromeos/network/geolocation_handler.h" | 10 #include "chromeos/network/geolocation_handler.h" |
11 #include "content/browser/geolocation/wifi_data_provider_chromeos.h" | 11 #include "content/browser/geolocation/wifi_data_provider_chromeos.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/cros_system_api/dbus/service_constants.h" | 13 #include "third_party/cros_system_api/dbus/service_constants.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 TEST_F(GeolocationChromeOsWifiDataProviderTest, GetManyAccessPoints) { | 90 TEST_F(GeolocationChromeOsWifiDataProviderTest, GetManyAccessPoints) { |
91 message_loop_.RunUntilIdle(); | 91 message_loop_.RunUntilIdle(); |
92 EXPECT_FALSE(GetAccessPointData()); | 92 EXPECT_FALSE(GetAccessPointData()); |
93 | 93 |
94 AddAccessPoints(3, 4); | 94 AddAccessPoints(3, 4); |
95 EXPECT_TRUE(GetAccessPointData()); | 95 EXPECT_TRUE(GetAccessPointData()); |
96 ASSERT_EQ(12u, ap_data_.size()); | 96 ASSERT_EQ(12u, ap_data_.size()); |
97 } | 97 } |
98 | 98 |
99 } // namespace content | 99 } // namespace content |
OLD | NEW |