# Path: tests/unit/requests/test_upload.py
# URL_PREFIX = "https://www.googleapis.com/upload/storage/v1/b/{BUCKET}/o"
# SIMPLE_URL = URL_PREFIX + "?uploadType=media&name={OBJECT}"
# MULTIPART_URL = URL_PREFIX + "?uploadType=multipart"
# RESUMABLE_URL = URL_PREFIX + "?uploadType=resumable"
# ONE_MB = 1024 * 1024
# BASIC_CONTENT = "text/plain"
# JSON_TYPE = "application/json; charset=UTF-8"
# JSON_TYPE_LINE = b"content-type: application/json; charset=UTF-8\r\n"
# EXPECTED_TIMEOUT = (61, 60)
# class TestSimpleUpload(object):
# class TestMultipartUpload(object):
# class TestResumableUpload(object):
#     def test_transmit(self):
#     def test_transmit_w_custom_timeout(self):
#     def test_transmit(self, mock_get_boundary):
#     def test_transmit_w_custom_timeout(self, mock_get_boundary):
#     def test_initiate(self):
#     def test_initiate_w_custom_timeout(self):
#     def _upload_in_flight(data, headers=None):
#     def _chunk_mock(status_code, response_headers):
#     def test_transmit_next_chunk(self):
#     def test_transmit_next_chunk_w_custom_timeout(self):
#     def test_recover(self):
# def _make_response(status_code=http.client.OK, headers=None):


import http.client
import io
import json
import aiohttp  # type: ignore
import mock  # type: ignore
import pytest  # type: ignore
import google._async_resumable_media.requests.upload as upload_mod
from tests.unit.requests import test_upload as sync_test
# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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.




SIMPLE_URL = sync_test.SIMPLE_URL
MULTIPART_URL = sync_test.MULTIPART_URL
RESUMABLE_URL = sync_test.RESUMABLE_URL
ONE_MB = sync_test.ONE_MB

# Path: tests/unit/requests/test_upload.py
# URL_PREFIX = "https://www.googleapis.com/upload/storage/v1/b/{BUCKET}/o"
# SIMPLE_URL = URL_PREFIX + "?uploadType=media&name={OBJECT}"
# MULTIPART_URL = URL_PREFIX + "?uploadType=multipart"
# RESUMABLE_URL = URL_PREFIX + "?uploadType=resumable"
# ONE_MB = 1024 * 1024
# BASIC_CONTENT = "text/plain"
# JSON_TYPE = "application/json; charset=UTF-8"
# JSON_TYPE_LINE = b"content-type: application/json; charset=UTF-8\r\n"
# EXPECTED_TIMEOUT = (61, 60)
# class TestSimpleUpload(object):
# class TestMultipartUpload(object):
# class TestResumableUpload(object):
#     def test_transmit(self):
#     def test_transmit_w_custom_timeout(self):
#     def test_transmit(self, mock_get_boundary):
#     def test_transmit_w_custom_timeout(self, mock_get_boundary):
#     def test_initiate(self):
#     def test_initiate_w_custom_timeout(self):
#     def _upload_in_flight(data, headers=None):
#     def _chunk_mock(status_code, response_headers):
#     def test_transmit_next_chunk(self):
#     def test_transmit_next_chunk_w_custom_timeout(self):
#     def test_recover(self):
# def _make_response(status_code=http.client.OK, headers=None):


# Path: tests_async/unit/requests/test_upload.py
import http.client
import io
import json
import aiohttp  # type: ignore
import mock  # type: ignore
import pytest  # type: ignore
import google._async_resumable_media.requests.upload as upload_mod
from tests.unit.requests import test_upload as sync_test

# Copyright 2017 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# 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.




SIMPLE_URL = sync_test.SIMPLE_URL
MULTIPART_URL = sync_test.MULTIPART_URL
RESUMABLE_URL = sync_test.RESUMABLE_URL
ONE_MB = sync_test.ONE_MB

BASIC_CONTENT = sync_test.BASIC_CONTENT