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

Unified Diff: chrome/browser/google_apis/base_requests_server_unittest.cc

Issue 18355004: google_apis: Move data files out of chrome/test/data/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix extension tests Created 7 years, 6 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 | « chrome/browser/drive/mock_drive_service.cc ('k') | chrome/browser/google_apis/drive_api_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/base_requests_server_unittest.cc
diff --git a/chrome/browser/google_apis/base_requests_server_unittest.cc b/chrome/browser/google_apis/base_requests_server_unittest.cc
index fc160f9fb42676d1bf27bb58a0c3ab048d2ebc42..6a298b3ae1171836d67c3cbb067b7d5378f4e2cc 100644
--- a/chrome/browser/google_apis/base_requests_server_unittest.cc
+++ b/chrome/browser/google_apis/base_requests_server_unittest.cc
@@ -93,7 +93,7 @@ TEST_F(BaseRequestsServerTest, DownloadFileRequest_ValidFile) {
test_util::CreateCopyResultCallback(&result_code, &temp_file)),
GetContentCallback(),
ProgressCallback(),
- test_server_.GetURL("/files/chromeos/gdata/testfile.txt"),
+ test_server_.GetURL("/files/gdata/testfile.txt"),
GetTestCachedFilePath(
base::FilePath::FromUTF8Unsafe("cached_testfile.txt")));
request_sender_->StartRequestWithRetry(request);
@@ -106,10 +106,10 @@ TEST_F(BaseRequestsServerTest, DownloadFileRequest_ValidFile) {
EXPECT_EQ(HTTP_SUCCESS, result_code);
EXPECT_EQ(net::test_server::METHOD_GET, http_request_.method);
- EXPECT_EQ("/files/chromeos/gdata/testfile.txt", http_request_.relative_url);
+ EXPECT_EQ("/files/gdata/testfile.txt", http_request_.relative_url);
const base::FilePath expected_path =
- test_util::GetTestFilePath("chromeos/gdata/testfile.txt");
+ test_util::GetTestFilePath("gdata/testfile.txt");
std::string expected_contents;
file_util::ReadFileToString(expected_path, &expected_contents);
EXPECT_EQ(expected_contents, contents);
@@ -127,7 +127,7 @@ TEST_F(BaseRequestsServerTest, DownloadFileRequest_NonExistentFile) {
test_util::CreateCopyResultCallback(&result_code, &temp_file)),
GetContentCallback(),
ProgressCallback(),
- test_server_.GetURL("/files/chromeos/gdata/no-such-file.txt"),
+ test_server_.GetURL("/files/gdata/no-such-file.txt"),
GetTestCachedFilePath(
base::FilePath::FromUTF8Unsafe("cache_no-such-file.txt")));
request_sender_->StartRequestWithRetry(request);
@@ -135,7 +135,7 @@ TEST_F(BaseRequestsServerTest, DownloadFileRequest_NonExistentFile) {
}
EXPECT_EQ(HTTP_NOT_FOUND, result_code);
EXPECT_EQ(net::test_server::METHOD_GET, http_request_.method);
- EXPECT_EQ("/files/chromeos/gdata/no-such-file.txt",
+ EXPECT_EQ("/files/gdata/no-such-file.txt",
http_request_.relative_url);
// Do not verify the not found message.
}
« no previous file with comments | « chrome/browser/drive/mock_drive_service.cc ('k') | chrome/browser/google_apis/drive_api_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698