OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Crashpad Authors. All rights reserved. |
| 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at |
| 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 // See the License for the specific language governing permissions and |
| 13 // limitations under the License. |
| 14 |
| 15 #include "util/test/multiprocess_exec.h" |
| 16 |
| 17 namespace crashpad { |
| 18 namespace test { |
| 19 |
| 20 // TODO(scottmg): All stub, not yet implemented on Windows. |
| 21 // https://code.google.com/p/crashpad/issues/detail?id=7 |
| 22 |
| 23 Multiprocess::Multiprocess() |
| 24 : info_(nullptr), |
| 25 code_(EXIT_SUCCESS), |
| 26 reason_(kTerminationNormal) { |
| 27 } |
| 28 |
| 29 void Multiprocess::Run() { |
| 30 } |
| 31 |
| 32 Multiprocess::~Multiprocess() { |
| 33 } |
| 34 |
| 35 void Multiprocess::PreFork() { |
| 36 } |
| 37 |
| 38 FileHandle Multiprocess::ReadPipeHandle() const { |
| 39 return FileHandle(); |
| 40 } |
| 41 |
| 42 FileHandle Multiprocess::WritePipeHandle() const { |
| 43 return FileHandle(); |
| 44 } |
| 45 |
| 46 MultiprocessExec::MultiprocessExec() |
| 47 : Multiprocess(), command_(), arguments_(), argv_() { |
| 48 } |
| 49 |
| 50 void MultiprocessExec::SetChildCommand( |
| 51 const std::string& command, |
| 52 const std::vector<std::string>* arguments) { |
| 53 command_ = command; |
| 54 if (arguments) { |
| 55 arguments_ = *arguments; |
| 56 } else { |
| 57 arguments_.clear(); |
| 58 } |
| 59 } |
| 60 |
| 61 MultiprocessExec::~MultiprocessExec() { |
| 62 } |
| 63 |
| 64 void MultiprocessExec::PreFork() { |
| 65 } |
| 66 |
| 67 void MultiprocessExec::MultiprocessChild() { |
| 68 } |
| 69 |
| 70 } // namespace test |
| 71 } // namespace crashpad |
OLD | NEW |