[rygel] tests: Fix for previous vala api change
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] tests: Fix for previous vala api change
- Date: Tue, 5 Jun 2018 22:02:54 +0000 (UTC)
commit ecac663d958967f0f320b57da3ecf08920456bc9
Author: Jens Georg <mail jensge org>
Date: Wed Jun 6 00:00:22 2018 +0200
tests: Fix for previous vala api change
tests/object-creator/test.vala | 4 ++--
tests/searchable-container/test.vala | 20 ++++++++++----------
2 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/tests/object-creator/test.vala b/tests/object-creator/test.vala
index aa25ae31..db7382a3 100644
--- a/tests/object-creator/test.vala
+++ b/tests/object-creator/test.vala
@@ -284,9 +284,9 @@ public class Rygel.SearchableContainer : Rygel.MediaContainer {
public async MediaObjects search (SearchExpression expression,
int offset,
int count,
- out int total_matches,
string soer_criteria,
- Cancellable? cancellable = null) {
+ Cancellable? cancellable,
+ out int total_matches) {
total_matches = 0;
Idle.add (() => { search.callback (); return false; });
yield;
diff --git a/tests/searchable-container/test.vala b/tests/searchable-container/test.vala
index 55d5fe58..419e2144 100644
--- a/tests/searchable-container/test.vala
+++ b/tests/searchable-container/test.vala
@@ -77,7 +77,7 @@ public class TestContainer : MediaContainer, Rygel.SearchableContainer {
// check corners
try {
- var result = yield search (null, 0, 0, out total_matches, "", null);
+ var result = yield search (null, 0, 0, "", null, out total_matches);
assert (total_matches == 10);
assert (result.size == 10);
} catch (GLib.Error error) {
@@ -85,7 +85,7 @@ public class TestContainer : MediaContainer, Rygel.SearchableContainer {
}
try {
- var result = yield search (null, 10, 0, out total_matches, "", null);
+ var result = yield search (null, 10, 0, "", null, out total_matches);
assert (total_matches == 10);
assert (result.size == 0);
} catch (GLib.Error error) {
@@ -94,7 +94,7 @@ public class TestContainer : MediaContainer, Rygel.SearchableContainer {
for (int i = 1; i < 10; ++i) {
try {
- var result = yield search (null, i, 0, out total_matches, "", null);
+ var result = yield search (null, i, 0, "", null, out total_matches);
assert (total_matches == 10);
assert (result.size == 10 - i);
} catch (GLib.Error error) {
@@ -110,7 +110,7 @@ public class TestContainer : MediaContainer, Rygel.SearchableContainer {
// check corners
try {
- var result = yield search (null, 0, 4, out total_matches, "", null);
+ var result = yield search (null, 0, 4, "", null, out total_matches);
assert (total_matches == 0);
assert (result.size == 4);
} catch (GLib.Error error) {
@@ -119,7 +119,7 @@ public class TestContainer : MediaContainer, Rygel.SearchableContainer {
try
{
- var result = yield search (null, 10, 4, out total_matches, "", null);
+ var result = yield search (null, 10, 4, "", null, out total_matches);
assert (total_matches == 0);
assert (result.size == 0);
} catch (GLib.Error error) {
@@ -128,7 +128,7 @@ public class TestContainer : MediaContainer, Rygel.SearchableContainer {
for (int i = 1; i < 10; ++i) {
try {
- var result = yield search (null, i, 3, out total_matches, "", null);
+ var result = yield search (null, i, 3, "", null, out total_matches);
assert (total_matches == 0);
assert (result.size == int.min (10 - i, 3));
} catch (GLib.Error error) {
@@ -152,16 +152,16 @@ public class TestContainer : MediaContainer, Rygel.SearchableContainer {
public async MediaObjects? search (SearchExpression? expression,
uint offset,
uint max_count,
- out uint total_matches,
string sort_criteria,
- Cancellable? cancellable)
+ Cancellable? cancellable,
+ out uint total_matches)
throws Error {
return yield this.simple_search (expression,
offset,
max_count,
- out total_matches,
sort_criteria ?? this.sort_criteria,
- cancellable);
+ cancellable,
+ out total_matches);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]