-
Notifications
You must be signed in to change notification settings - Fork 123
StorageReference List stubs #1733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
jonsimantov
wants to merge
9
commits into
feature/storagereference_list
Choose a base branch
from
feat/storage-list-stubs
base: feature/storagereference_list
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+800
−3
Draft
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
95a5990
Here's the plan for adding stub implementations for `List` and `ListA…
google-labs-jules[bot] fe7932c
Input:
google-labs-jules[bot] 06c4128
Here's the commit message I've drafted:
google-labs-jules[bot] 1d4e3d3
Chore: Clean up extraneous comments in ListResult implementation
google-labs-jules[bot] 1cf68d5
Chore: Remove extraneous same-line comments on #includes
google-labs-jules[bot] 1677c18
This commit implements the stubbed StorageReference::List() and
google-labs-jules[bot] 57ab90b
Fix: Address review comments for List/ListAll stubs
google-labs-jules[bot] 2041171
Fix: Remove SWIG_STORAGE_EXPORT from ListResult class
google-labs-jules[bot] 12e873c
Fix: Remove SWIG macro from StorageReference List/ListAll & update Do…
google-labs-jules[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// File: storage/src/android/list_result_android.cc | ||
#include "storage/src/android/list_result_android.h" | ||
|
||
namespace firebase { | ||
namespace storage { | ||
namespace internal { | ||
|
||
ListResultInternal::ListResultInternal( | ||
StorageReferenceInternal* platform_sri, | ||
const ListResultInternal* other_to_copy_from) | ||
: platform_sri_(platform_sri) { | ||
if (other_to_copy_from) { | ||
items_ = other_to_copy_from->items_; | ||
prefixes_ = other_to_copy_from->prefixes_; | ||
page_token_ = other_to_copy_from->page_token_; | ||
} | ||
} | ||
|
||
} // namespace internal | ||
} // namespace storage | ||
} // namespace firebase |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// File: storage/src/android/list_result_android.h | ||
#ifndef FIREBASE_STORAGE_CLIENT_CPP_SRC_ANDROID_LIST_RESULT_ANDROID_H_ | ||
#define FIREBASE_STORAGE_CLIENT_CPP_SRC_ANDROID_LIST_RESULT_ANDROID_H_ | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
#include "firebase/storage/storage_reference.h" | ||
#include "storage/src/android/storage_reference_android.h" | ||
#include "storage/src/android/storage_internal_android.h" | ||
|
||
namespace firebase { | ||
namespace storage { | ||
namespace internal { | ||
|
||
class ListResultInternal { | ||
public: | ||
explicit ListResultInternal( | ||
StorageReferenceInternal* platform_sri, | ||
const ListResultInternal* other_to_copy_from = nullptr); | ||
|
||
const std::vector<StorageReference>& items() const { return items_; } | ||
const std::vector<StorageReference>& prefixes() const { return prefixes_; } | ||
const std::string& page_token() const { return page_token_; } | ||
|
||
StorageReferenceInternal* storage_reference_internal() const { | ||
return platform_sri_; | ||
} | ||
StorageInternal* associated_storage_internal() const { | ||
return platform_sri_ ? platform_sri_->storage_internal() : nullptr; | ||
} | ||
|
||
private: | ||
ListResultInternal& operator=(const ListResultInternal&); | ||
|
||
StorageReferenceInternal* platform_sri_; | ||
std::vector<StorageReference> items_; | ||
std::vector<StorageReference> prefixes_; | ||
std::string page_token_; | ||
}; | ||
|
||
} // namespace internal | ||
} // namespace storage | ||
} // namespace firebase | ||
|
||
#endif // FIREBASE_STORAGE_CLIENT_CPP_SRC_ANDROID_LIST_RESULT_ANDROID_H_ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.