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

Unified Diff: third_party/bson_c/test/bson_subobject_test.c

Issue 294683003: Since we're only using it on Linux now, just require poppler as a system dependency. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: set -e Created 6 years, 7 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 | « third_party/bson_c/src/numbers.c ('k') | third_party/bson_c/test/bson_test.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/bson_c/test/bson_subobject_test.c
diff --git a/third_party/bson_c/test/bson_subobject_test.c b/third_party/bson_c/test/bson_subobject_test.c
deleted file mode 100644
index 06d49c946068303d9af84d803e6e47a48341b0b0..0000000000000000000000000000000000000000
--- a/third_party/bson_c/test/bson_subobject_test.c
+++ /dev/null
@@ -1,50 +0,0 @@
-#include "test.h"
-#include "bson.h"
-#include <stdio.h>
-#include <string.h>
-#include <stdlib.h>
-
-int main() {
- bson_iterator it[1], it2[1];
- bson b[1];
- bson sub[1];
- bson copy[1];
- bson_type type;
-
- bson_init( b );
- bson_append_string( b, "foo", "hello" );
-
- {
- bson_append_start_object( b, "o" );
- bson_append_string( b, "bar", "goodbye" );
- bson_append_finish_object( b );
- }
-
- bson_iterator_init( it, b );
-
- bson_iterator_next( it );
- type = bson_iterator_next( it );
-
- ASSERT( BSON_OBJECT == type );
-
- bson_iterator_subobject( it, sub );
- ASSERT( sub->finished == 1 );
-
- bson_iterator_init( it2, sub );
-
- type = bson_iterator_next( it2 );
- ASSERT( BSON_STRING == type );
- type = bson_iterator_next( it2 );
- ASSERT( BSON_EOO == type );
-
- bson_copy( copy, sub );
-
- ASSERT( 1 == copy->finished );
- ASSERT( 0 == copy->stackPos );
- ASSERT( 0 == copy->err );
-
- bson_destroy( b );
-
- return 0;
-}
-
« no previous file with comments | « third_party/bson_c/src/numbers.c ('k') | third_party/bson_c/test/bson_test.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698