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

Side by Side Diff: chromeos/dbus/fake_shill_manager_client.cc

Issue 2453133002: [ash-md] Makes Wi-Fi header row sticky when network list is scrolled (Closed)
Patch Set: [ash-md] Makes Wi-Fi header row sticky when network list is scrolled (fixed targeting) Created 4 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 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
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 int s_extra_wifi_networks = 20;
42 42
43 // For testing dynamic WEP networks (uses wifi2). 43 // For testing dynamic WEP networks (uses wifi2).
44 bool s_dynamic_wep = false; 44 bool s_dynamic_wep = false;
45 45
46 // Used to compare values for finding entries to erase in a ListValue. 46 // Used to compare values for finding entries to erase in a ListValue.
47 // (ListValue only implements a const_iterator version of Find). 47 // (ListValue only implements a const_iterator version of Find).
48 struct ValueEquals { 48 struct ValueEquals {
49 explicit ValueEquals(const base::Value* first) : first_(first) {} 49 explicit ValueEquals(const base::Value* first) : first_(first) {}
50 bool operator()(const base::Value* second) const { 50 bool operator()(const base::Value* second) const {
51 return first_->Equals(second); 51 return first_->Equals(second);
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1228 LOG(WARNING) << "Invalid state: " << state << " for " << type; 1228 LOG(WARNING) << "Invalid state: " << state << " for " << type;
1229 result = shill::kStateIdle; 1229 result = shill::kStateIdle;
1230 } 1230 }
1231 } 1231 }
1232 VLOG(1) << "Initial state for: " << type << " = " << result 1232 VLOG(1) << "Initial state for: " << type << " = " << result
1233 << " Enabled: " << *enabled; 1233 << " Enabled: " << *enabled;
1234 return result; 1234 return result;
1235 } 1235 }
1236 1236
1237 } // namespace chromeos 1237 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698