Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(802)

Side by Side Diff: content/browser/geolocation/wifi_data_provider_linux_unittest.cc

Issue 678073006: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bogus formatting Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "content/browser/geolocation/wifi_data_provider_linux.h" 5 #include "content/browser/geolocation/wifi_data_provider_linux.h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "dbus/message.h" 11 #include "dbus/message.h"
12 #include "dbus/mock_bus.h" 12 #include "dbus/mock_bus.h"
13 #include "dbus/mock_object_proxy.h" 13 #include "dbus/mock_object_proxy.h"
14 #include "dbus/object_path.h" 14 #include "dbus/object_path.h"
15 #include "dbus/object_proxy.h" 15 #include "dbus/object_proxy.h"
16 #include "testing/gmock/include/gmock/gmock.h" 16 #include "testing/gmock/include/gmock/gmock.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 18
19 using ::testing::_; 19 using ::testing::_;
20 using ::testing::Invoke; 20 using ::testing::Invoke;
21 using ::testing::Return; 21 using ::testing::Return;
22 using ::testing::Unused; 22 using ::testing::Unused;
23 23
24 namespace content { 24 namespace content {
25 25
26 class GeolocationWifiDataProviderLinuxTest : public testing::Test { 26 class GeolocationWifiDataProviderLinuxTest : public testing::Test {
27 virtual void SetUp() { 27 void SetUp() override {
28 // Create a mock bus. 28 // Create a mock bus.
29 dbus::Bus::Options options; 29 dbus::Bus::Options options;
30 options.bus_type = dbus::Bus::SYSTEM; 30 options.bus_type = dbus::Bus::SYSTEM;
31 mock_bus_ = new dbus::MockBus(options); 31 mock_bus_ = new dbus::MockBus(options);
32 32
33 // Create a mock proxy that behaves as NetworkManager. 33 // Create a mock proxy that behaves as NetworkManager.
34 mock_network_manager_proxy_ = 34 mock_network_manager_proxy_ =
35 new dbus::MockObjectProxy( 35 new dbus::MockObjectProxy(
36 mock_bus_.get(), 36 mock_bus_.get(),
37 "org.freedesktop.NetworkManager", 37 "org.freedesktop.NetworkManager",
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 // Check the contents of the access point data. 223 // Check the contents of the access point data.
224 // The expected values come from CreateAccessPointProxyResponse() above. 224 // The expected values come from CreateAccessPointProxyResponse() above.
225 EXPECT_EQ("test", base::UTF16ToUTF8(access_point_data.ssid)); 225 EXPECT_EQ("test", base::UTF16ToUTF8(access_point_data.ssid));
226 EXPECT_EQ("00-11-22-33-44-55", 226 EXPECT_EQ("00-11-22-33-44-55",
227 base::UTF16ToUTF8(access_point_data.mac_address)); 227 base::UTF16ToUTF8(access_point_data.mac_address));
228 EXPECT_EQ(-50, access_point_data.radio_signal_strength); 228 EXPECT_EQ(-50, access_point_data.radio_signal_strength);
229 EXPECT_EQ(4, access_point_data.channel); 229 EXPECT_EQ(4, access_point_data.channel);
230 } 230 }
231 231
232 } // namespace content 232 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/geolocation/wifi_data_provider_linux.cc ('k') | content/browser/gpu/gpu_data_manager_impl_private_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698