Skip to content

Commit bc817e6

Browse files
committed
Fix
1 parent 9c73e1d commit bc817e6

File tree

2 files changed

+0
-57
lines changed

2 files changed

+0
-57
lines changed

firestore/integration_test_internal/src/bundle_test.cc

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -94,25 +94,6 @@ class BundleTest : public FirestoreIntegrationTest {
9494
MapFieldValue{{"k", FieldValue::String("b")},
9595
{"bar", FieldValue::Integer(2)}}));
9696
}
97-
98-
{
99-
Query limit = AwaitResult(db->NamedQuery(kLimitQueryName));
100-
auto limit_snapshot = AwaitResult(limit.Get(Source::kCache));
101-
EXPECT_THAT(
102-
QuerySnapshotToValues(limit_snapshot),
103-
testing::ElementsAre(MapFieldValue{{"k", FieldValue::String("b")},
104-
{"bar", FieldValue::Integer(2)}}));
105-
}
106-
107-
{
108-
Query limit_to_last = AwaitResult(db->NamedQuery(kLimitToLastQueryName));
109-
auto limit_to_last_snapshot =
110-
AwaitResult(limit_to_last.Get(Source::kCache));
111-
EXPECT_THAT(
112-
QuerySnapshotToValues(limit_to_last_snapshot),
113-
testing::ElementsAre(MapFieldValue{{"k", FieldValue::String("a")},
114-
{"bar", FieldValue::Integer(1)}}));
115-
}
11697
}
11798
};
11899

@@ -259,21 +240,6 @@ TEST_F(BundleTest, LoadBundleWithDocumentsAlreadyPulledFromBackend) {
259240
testing::ElementsAre(
260241
MapFieldValue{{"bar", FieldValue::String("newValueA")}},
261242
MapFieldValue{{"bar", FieldValue::String("newValueB")}}));
262-
263-
{
264-
Query limit = AwaitResult(db->NamedQuery(kLimitQueryName));
265-
EXPECT_THAT(QuerySnapshotToValues(AwaitResult(limit.Get(Source::kCache))),
266-
testing::ElementsAre(
267-
MapFieldValue{{"bar", FieldValue::String("newValueB")}}));
268-
}
269-
270-
{
271-
Query limit_to_last = AwaitResult(db->NamedQuery(kLimitToLastQueryName));
272-
EXPECT_THAT(
273-
QuerySnapshotToValues(AwaitResult(limit_to_last.Get(Source::kCache))),
274-
testing::ElementsAre(
275-
MapFieldValue{{"bar", FieldValue::String("newValueA")}}));
276-
}
277243
}
278244

279245
TEST_F(BundleTest, LoadedDocumentsShouldNotBeGarbageCollectedRightAway) {
@@ -316,28 +282,6 @@ TEST_F(BundleTest, LoadDocumentsFromOtherProjectsShouldFail) {
316282
VerifyErrorProgress(progresses[1]);
317283
}
318284

319-
TEST_F(BundleTest, GetInvalidNamedQuery) {
320-
Firestore* db = TestFirestore();
321-
{
322-
auto future = db->NamedQuery("DOES_NOT_EXIST");
323-
Await(future);
324-
EXPECT_EQ(future.status(), FutureStatus::kFutureStatusComplete);
325-
EXPECT_EQ(future.error(), Error::kErrorNotFound);
326-
}
327-
{
328-
auto future = db->NamedQuery("");
329-
Await(future);
330-
EXPECT_EQ(future.status(), FutureStatus::kFutureStatusComplete);
331-
EXPECT_EQ(future.error(), Error::kErrorNotFound);
332-
}
333-
{
334-
auto future = db->NamedQuery("\xc3\x28");
335-
Await(future);
336-
EXPECT_EQ(future.status(), FutureStatus::kFutureStatusComplete);
337-
EXPECT_EQ(future.error(), Error::kErrorNotFound);
338-
}
339-
}
340-
341285
} // namespace
342286
} // namespace firestore
343287
} // namespace firebase

firestore/src/ios/firestore_ios.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ class FirestoreInternal {
100100
Future<LoadBundleTaskProgress> LoadBundle(
101101
const std::string& bundle,
102102
std::function<void(const LoadBundleTaskProgress&)> progress_callback);
103-
Future<Query> NamedQuery(const std::string& query_name);
104103

105104
// Manages the ListenerRegistrationInternal objects.
106105
void RegisterListenerRegistration(ListenerRegistrationInternal* registration);

0 commit comments

Comments
 (0)