Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(501)

Unified Diff: test/db/properties_test.dart

Issue 2731933004: Remove FilterRelation.In / "property IN" queries, upgrade googleapis{,_beta} dependencies (Closed)
Patch Set: add pubspec.yaml update Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/db/e2e/db_test_impl.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/db/properties_test.dart
diff --git a/test/db/properties_test.dart b/test/db/properties_test.dart
index eed59e9ec7a0ad9fe5ce1eac5f8be5975d342404..52217b603a9ea004f5d1e28472e32e6f7aa86494 100644
--- a/test/db/properties_test.dart
+++ b/test/db/properties_test.dart
@@ -117,6 +117,9 @@ main() {
expect(prop.encodeValue(null, []), equals(null));
expect(prop.encodeValue(null, [true]), equals(true));
expect(prop.encodeValue(null, [true, false]), equals([true, false]));
+ expect(prop.encodeValue(null, true, forComparison: true), equals(true));
+ expect(prop.encodeValue(null, false, forComparison: true), equals(false));
+ expect(prop.encodeValue(null, null, forComparison: true), equals(null));
expect(prop.decodePrimitiveValue(null, null), equals([]));
expect(prop.decodePrimitiveValue(null, []), equals([]));
expect(prop.decodePrimitiveValue(null, true), equals([true]));
@@ -238,5 +241,5 @@ class ModelDBMock implements ModelDB {
datastore.Entity toDatastoreEntity(Model model) => null;
String fieldNameToPropertyName(String kind, String fieldName) => null;
String kindName(Type type) => null;
- Object toDatastoreValue(String kind, String fieldName, Object value) => null;
+ Object toDatastoreValue(String kind, String fieldName, Object value, {bool forComparison: false}) => null;
}
« no previous file with comments | « test/db/e2e/db_test_impl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698