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

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

Issue 270853002: Use base::File for DebugDaemonClient::GetDebugLogs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 "fake_debug_daemon_client.h" 5 #include "fake_debug_daemon_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 FakeDebugDaemonClient::FakeDebugDaemonClient() {} 18 FakeDebugDaemonClient::FakeDebugDaemonClient() {}
19 19
20 FakeDebugDaemonClient::~FakeDebugDaemonClient() {} 20 FakeDebugDaemonClient::~FakeDebugDaemonClient() {}
21 21
22 void FakeDebugDaemonClient::Init(dbus::Bus* bus) {} 22 void FakeDebugDaemonClient::Init(dbus::Bus* bus) {}
23 23
24 void FakeDebugDaemonClient::GetDebugLogs(base::PlatformFile file, 24 void FakeDebugDaemonClient::GetDebugLogs(base::File file,
25 const GetDebugLogsCallback& callback) { 25 const GetDebugLogsCallback& callback) {
26 callback.Run(false); 26 callback.Run(false);
27 } 27 }
28 28
29 void FakeDebugDaemonClient::SetDebugMode(const std::string& subsystem, 29 void FakeDebugDaemonClient::SetDebugMode(const std::string& subsystem,
30 const SetDebugModeCallback& callback) { 30 const SetDebugModeCallback& callback) {
31 callback.Run(false); 31 callback.Run(false);
32 } 32 }
33 void FakeDebugDaemonClient::StartSystemTracing() {} 33 void FakeDebugDaemonClient::StartSystemTracing() {}
34 34
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 const std::map<std::string, std::string>& options, 110 const std::map<std::string, std::string>& options,
111 const TestICMPCallback& callback) { 111 const TestICMPCallback& callback) {
112 base::MessageLoop::current()->PostTask(FROM_HERE, 112 base::MessageLoop::current()->PostTask(FROM_HERE,
113 base::Bind(callback, false, "")); 113 base::Bind(callback, false, ""));
114 } 114 }
115 115
116 void FakeDebugDaemonClient::UploadCrashes() { 116 void FakeDebugDaemonClient::UploadCrashes() {
117 } 117 }
118 118
119 } // namespace chromeos 119 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698