| 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/wifi_data_provider_common.h" | |
| 6 | |
| 7 #include <vector> | 5 #include <vector> |
| 8 | 6 |
| 9 #include "base/scoped_ptr.h" | 7 #include "base/scoped_ptr.h" |
| 10 #include "base/string_util.h" | 8 #include "base/string_util.h" |
| 11 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" | 9 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" |
| 12 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| 11 #include "content/browser/geolocation/wifi_data_provider_common.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
| 14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
| 15 | 14 |
| 16 using testing::_; | 15 using testing::_; |
| 17 using testing::AtLeast; | 16 using testing::AtLeast; |
| 18 using testing::DoDefault; | 17 using testing::DoDefault; |
| 19 using testing::Invoke; | 18 using testing::Invoke; |
| 20 using testing::Return; | 19 using testing::Return; |
| 21 | 20 |
| 22 namespace { | 21 namespace { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 MessageLoopQuitListener quit_listener(&main_message_loop_); | 222 MessageLoopQuitListener quit_listener(&main_message_loop_); |
| 224 WifiDataProvider::SetFactory(CreateWifiDataProviderCommonWithMock); | 223 WifiDataProvider::SetFactory(CreateWifiDataProviderCommonWithMock); |
| 225 DeviceDataProvider<WifiData>::Register(&quit_listener); | 224 DeviceDataProvider<WifiData>::Register(&quit_listener); |
| 226 main_message_loop_.Run(); | 225 main_message_loop_.Run(); |
| 227 DeviceDataProvider<WifiData>::Unregister(&quit_listener); | 226 DeviceDataProvider<WifiData>::Unregister(&quit_listener); |
| 228 DeviceDataProvider<WifiData>::ResetFactory(); | 227 DeviceDataProvider<WifiData>::ResetFactory(); |
| 229 } | 228 } |
| 230 | 229 |
| 231 } // namespace | 230 } // namespace |
| 232 | 231 |
| OLD | NEW |