Skip to content

Commit

Permalink
fixed examples
Browse files Browse the repository at this point in the history
  • Loading branch information
HJLebbink committed Mar 18, 2024
1 parent e1c4488 commit efdb509
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
9 changes: 9 additions & 0 deletions examples/PutObject.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,16 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <fstream>
#include <iosfwd>
#include <iostream>
#include <ostream>

#include "args.h"
#include "client.h"
#include "providers.h"
#include "request.h"
#include "response.h"

int main() {
// Create S3 base URL.
Expand Down
10 changes: 10 additions & 0 deletions examples/PutObjectProgress.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,17 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#include <fstream>
#include <iosfwd>
#include <iostream>
#include <ostream>

#include "args.h"
#include "client.h"
#include "http.h"
#include "providers.h"
#include "request.h"
#include "response.h"

int main() {
// Create S3 base URL.
Expand Down
22 changes: 22 additions & 0 deletions tests/tests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,33 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include <array>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <iosfwd>
#include <iostream>
#include <list>
#include <ostream>
#include <random>
#include <sstream>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <thread>
#include <utility>

#include "args.h"
#include "client.h"
#include "http.h"
#include "providers.h"
#include "request.h"
#include "response.h"
#include "types.h"
#include "utils.h"

thread_local static std::mt19937 rg{std::random_device{}()};

Expand Down

0 comments on commit efdb509

Please sign in to comment.