OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chromeos/dbus/fake_shill_manager_client.h" | 5 #include "chromeos/dbus/fake_shill_manager_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "dbus/object_path.h" | 31 #include "dbus/object_path.h" |
32 #include "dbus/values_util.h" | 32 #include "dbus/values_util.h" |
33 #include "third_party/cros_system_api/dbus/service_constants.h" | 33 #include "third_party/cros_system_api/dbus/service_constants.h" |
34 | 34 |
35 namespace chromeos { | 35 namespace chromeos { |
36 | 36 |
37 namespace { | 37 namespace { |
38 | 38 |
39 // Allow parsed command line option 'tdls_busy' to set the fake busy count. | 39 // Allow parsed command line option 'tdls_busy' to set the fake busy count. |
40 int s_tdls_busy_count = 0; | 40 int s_tdls_busy_count = 0; |
41 int s_extra_wifi_networks = 0; | 41 // TODO(varkha): debugging code - revert before landing. |
| 42 int s_extra_wifi_networks = 20; |
42 | 43 |
43 // For testing dynamic WEP networks (uses wifi2). | 44 // For testing dynamic WEP networks (uses wifi2). |
44 bool s_dynamic_wep = false; | 45 bool s_dynamic_wep = false; |
45 | 46 |
46 // Used to compare values for finding entries to erase in a ListValue. | 47 // Used to compare values for finding entries to erase in a ListValue. |
47 // (ListValue only implements a const_iterator version of Find). | 48 // (ListValue only implements a const_iterator version of Find). |
48 struct ValueEquals { | 49 struct ValueEquals { |
49 explicit ValueEquals(const base::Value* first) : first_(first) {} | 50 explicit ValueEquals(const base::Value* first) : first_(first) {} |
50 bool operator()(const base::Value* second) const { | 51 bool operator()(const base::Value* second) const { |
51 return first_->Equals(second); | 52 return first_->Equals(second); |
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 LOG(WARNING) << "Invalid state: " << state << " for " << type; | 1229 LOG(WARNING) << "Invalid state: " << state << " for " << type; |
1229 result = shill::kStateIdle; | 1230 result = shill::kStateIdle; |
1230 } | 1231 } |
1231 } | 1232 } |
1232 VLOG(1) << "Initial state for: " << type << " = " << result | 1233 VLOG(1) << "Initial state for: " << type << " = " << result |
1233 << " Enabled: " << *enabled; | 1234 << " Enabled: " << *enabled; |
1234 return result; | 1235 return result; |
1235 } | 1236 } |
1236 | 1237 |
1237 } // namespace chromeos | 1238 } // namespace chromeos |
OLD | NEW |