@@ -1293,7 +1293,7 @@ public void testListLogEntries() {
12931293 EasyMock .replay (rpcFactoryMock );
12941294 logging = options .getService ();
12951295 ListLogEntriesRequest request =
1296- ListLogEntriesRequest .newBuilder ().addProjectIds ( PROJECT ).build ();
1296+ ListLogEntriesRequest .newBuilder ().addResourceNames ( PROJECT_PB ).build ();
12971297 List <LogEntry > entriesList = ImmutableList .of (LOG_ENTRY1 , LOG_ENTRY2 );
12981298 ListLogEntriesResponse response =
12991299 ListLogEntriesResponse .newBuilder ()
@@ -1314,9 +1314,12 @@ public void testListLogEntriesNextPage() throws ExecutionException, InterruptedE
13141314 EasyMock .replay (rpcFactoryMock );
13151315 logging = options .getService ();
13161316 ListLogEntriesRequest request1 =
1317- ListLogEntriesRequest .newBuilder ().addProjectIds ( PROJECT ).build ();
1317+ ListLogEntriesRequest .newBuilder ().addResourceNames ( PROJECT_PB ).build ();
13181318 ListLogEntriesRequest request2 =
1319- ListLogEntriesRequest .newBuilder ().addProjectIds (PROJECT ).setPageToken (cursor1 ).build ();
1319+ ListLogEntriesRequest .newBuilder ()
1320+ .addResourceNames (PROJECT_PB )
1321+ .setPageToken (cursor1 )
1322+ .build ();
13201323 List <LogEntry > descriptorList1 = ImmutableList .of (LOG_ENTRY1 , LOG_ENTRY2 );
13211324 List <LogEntry > descriptorList2 = ImmutableList .of (LOG_ENTRY1 );
13221325 ListLogEntriesResponse response1 =
@@ -1351,7 +1354,7 @@ public void testListLogEntriesEmpty() {
13511354 EasyMock .replay (rpcFactoryMock );
13521355 logging = options .getService ();
13531356 ListLogEntriesRequest request =
1354- ListLogEntriesRequest .newBuilder ().addProjectIds ( PROJECT ).build ();
1357+ ListLogEntriesRequest .newBuilder ().addResourceNames ( PROJECT_PB ).build ();
13551358 List <LogEntry > entriesList = ImmutableList .of ();
13561359 ListLogEntriesResponse response =
13571360 ListLogEntriesResponse .newBuilder ()
@@ -1373,7 +1376,7 @@ public void testListLogEntriesWithOptions() {
13731376 logging = options .getService ();
13741377 ListLogEntriesRequest request =
13751378 ListLogEntriesRequest .newBuilder ()
1376- .addProjectIds ( PROJECT )
1379+ .addResourceNames ( PROJECT_PB )
13771380 .setOrderBy ("timestamp desc" )
13781381 .setFilter ("logName:syslog" )
13791382 .build ();
@@ -1400,7 +1403,7 @@ public void testListLogEntriesAsync() throws ExecutionException, InterruptedExce
14001403 EasyMock .replay (rpcFactoryMock );
14011404 logging = options .getService ();
14021405 ListLogEntriesRequest request =
1403- ListLogEntriesRequest .newBuilder ().addProjectIds ( PROJECT ).build ();
1406+ ListLogEntriesRequest .newBuilder ().addResourceNames ( PROJECT_PB ).build ();
14041407 List <LogEntry > entriesList = ImmutableList .of (LOG_ENTRY1 , LOG_ENTRY2 );
14051408 ListLogEntriesResponse response =
14061409 ListLogEntriesResponse .newBuilder ()
@@ -1421,9 +1424,12 @@ public void testListLogEntriesAsyncNextPage() {
14211424 EasyMock .replay (rpcFactoryMock );
14221425 logging = options .getService ();
14231426 ListLogEntriesRequest request1 =
1424- ListLogEntriesRequest .newBuilder ().addProjectIds ( PROJECT ).build ();
1427+ ListLogEntriesRequest .newBuilder ().addResourceNames ( PROJECT_PB ).build ();
14251428 ListLogEntriesRequest request2 =
1426- ListLogEntriesRequest .newBuilder ().addProjectIds (PROJECT ).setPageToken (cursor1 ).build ();
1429+ ListLogEntriesRequest .newBuilder ()
1430+ .addResourceNames (PROJECT_PB )
1431+ .setPageToken (cursor1 )
1432+ .build ();
14271433 List <LogEntry > descriptorList1 = ImmutableList .of (LOG_ENTRY1 , LOG_ENTRY2 );
14281434 List <LogEntry > descriptorList2 = ImmutableList .of (LOG_ENTRY1 );
14291435 ListLogEntriesResponse response1 =
@@ -1458,7 +1464,7 @@ public void testListLogEntriesAyncEmpty() throws ExecutionException, Interrupted
14581464 EasyMock .replay (rpcFactoryMock );
14591465 logging = options .getService ();
14601466 ListLogEntriesRequest request =
1461- ListLogEntriesRequest .newBuilder ().addProjectIds ( PROJECT ).build ();
1467+ ListLogEntriesRequest .newBuilder ().addResourceNames ( PROJECT_PB ).build ();
14621468 List <LogEntry > entriesList = ImmutableList .of ();
14631469 ListLogEntriesResponse response =
14641470 ListLogEntriesResponse .newBuilder ()
@@ -1480,7 +1486,7 @@ public void testListLogEntriesAsyncWithOptions() throws ExecutionException, Inte
14801486 logging = options .getService ();
14811487 ListLogEntriesRequest request =
14821488 ListLogEntriesRequest .newBuilder ()
1483- .addProjectIds ( PROJECT )
1489+ .addResourceNames ( PROJECT_PB )
14841490 .setOrderBy ("timestamp desc" )
14851491 .setFilter ("logName:syslog" )
14861492 .build ();
0 commit comments