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

Side by Side Diff: chromeos/dbus/fake_update_engine_client.h

Issue 2694923005: Appropriate handling for Cellular First devices. (Closed)
Patch Set: rebased Created 3 years, 9 months 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
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | chromeos/dbus/fake_update_engine_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 18 matching lines...) Expand all
29 void RequestUpdateCheck(const UpdateCheckCallback& callback) override; 29 void RequestUpdateCheck(const UpdateCheckCallback& callback) override;
30 void RebootAfterUpdate() override; 30 void RebootAfterUpdate() override;
31 void Rollback() override; 31 void Rollback() override;
32 void CanRollbackCheck(const RollbackCheckCallback& callback) override; 32 void CanRollbackCheck(const RollbackCheckCallback& callback) override;
33 Status GetLastStatus() override; 33 Status GetLastStatus() override;
34 void SetChannel(const std::string& target_channel, 34 void SetChannel(const std::string& target_channel,
35 bool is_powerwash_allowed) override; 35 bool is_powerwash_allowed) override;
36 void GetChannel(bool get_current_channel, 36 void GetChannel(bool get_current_channel,
37 const GetChannelCallback& callback) override; 37 const GetChannelCallback& callback) override;
38 void GetEolStatus(const GetEolStatusCallback& callback) override; 38 void GetEolStatus(const GetEolStatusCallback& callback) override;
39 void SetUpdateOverCellularPermission(bool allowed,
40 const base::Closure& callback) override;
39 41
40 // Pushes UpdateEngineClient::Status in the queue to test changing status. 42 // Pushes UpdateEngineClient::Status in the queue to test changing status.
41 // GetLastStatus() returns the status set by this method in FIFO order. 43 // GetLastStatus() returns the status set by this method in FIFO order.
42 // See set_default_status(). 44 // See set_default_status().
43 void PushLastStatus(const UpdateEngineClient::Status& status) { 45 void PushLastStatus(const UpdateEngineClient::Status& status) {
44 status_queue_.push(status); 46 status_queue_.push(status);
45 } 47 }
46 48
47 // Sends status change notification. 49 // Sends status change notification.
48 void NotifyObserversThatStatusChanged( 50 void NotifyObserversThatStatusChanged(
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 bool can_rollback_stub_result_; 86 bool can_rollback_stub_result_;
85 int reboot_after_update_call_count_; 87 int reboot_after_update_call_count_;
86 int request_update_check_call_count_; 88 int request_update_check_call_count_;
87 int rollback_call_count_; 89 int rollback_call_count_;
88 int can_rollback_call_count_; 90 int can_rollback_call_count_;
89 }; 91 };
90 92
91 } // namespace chromeos 93 } // namespace chromeos
92 94
93 #endif // CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_ 95 #endif // CHROMEOS_DBUS_FAKE_UPDATE_ENGINE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/chromeos_switches.cc ('k') | chromeos/dbus/fake_update_engine_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698