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

Unified Diff: google_apis/drive/drive_api_url_generator_unittest.cc

Issue 2885323002: Add URL generator / json parser for getting start_page_token of changes. (Closed)
Patch Set: Created 3 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
Index: google_apis/drive/drive_api_url_generator_unittest.cc
diff --git a/google_apis/drive/drive_api_url_generator_unittest.cc b/google_apis/drive/drive_api_url_generator_unittest.cc
index 43bc4524b7d1d840cb30127e1c8afae6af33d30f..86d2c9052c9de5d2313f1554324cc42e531f1a31 100644
--- a/google_apis/drive/drive_api_url_generator_unittest.cc
+++ b/google_apis/drive/drive_api_url_generator_unittest.cc
@@ -254,6 +254,21 @@ TEST_F(DriveApiUrlGeneratorTest, GetFilesTrashUrl) {
team_drives_url_generator_.GetFilesTrashUrl("0ADK06pfg").spec());
}
+TEST_F(DriveApiUrlGeneratorTest, GetChangesGetStartPageTokenUrl) {
+ EXPECT_EQ(
+ "https://www.example.com/drive/v2/changes/startPageToken?"
+ "supportsTeamDrives=true",
+ team_drives_url_generator_
+ .GetChangesGetStartPageTokenUrl("" /* team_drive_id */)
+ .spec());
+ EXPECT_EQ(
+ "https://www.example.com/drive/v2/changes/startPageToken?"
+ "supportsTeamDrives=true&teamDriveId=TheTeamDriveId",
+ team_drives_url_generator_
+ .GetChangesGetStartPageTokenUrl("TheTeamDriveId")
+ .spec());
+}
+
TEST_F(DriveApiUrlGeneratorTest, GetChangesListUrl) {
struct TestPattern {
bool include_deleted;
« no previous file with comments | « google_apis/drive/drive_api_url_generator.cc ('k') | google_apis/test/data/drive/changes_start_page_token.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698