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

Unified Diff: chrome/browser/chromeos/gdata/gdata_wapi_service_browsertest.cc

Issue 10829375: Cleanup: separate WAPI and Drive API code in gdata_documents_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix for comments Created 8 years, 4 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: chrome/browser/chromeos/gdata/gdata_wapi_service_browsertest.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_documents_service_browsertest.cc b/chrome/browser/chromeos/gdata/gdata_wapi_service_browsertest.cc
similarity index 94%
rename from chrome/browser/chromeos/gdata/gdata_documents_service_browsertest.cc
rename to chrome/browser/chromeos/gdata/gdata_wapi_service_browsertest.cc
index 7338e91f16abc95efea565e6bca67f9f3ef37efe..5aac75c31af6e42d066bae325944e387afa8dbcc 100644
--- a/chrome/browser/chromeos/gdata/gdata_documents_service_browsertest.cc
+++ b/chrome/browser/chromeos/gdata/gdata_wapi_service_browsertest.cc
@@ -7,7 +7,7 @@
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/json/json_reader.h"
-#include "chrome/browser/chromeos/gdata/gdata_documents_service.h"
+#include "chrome/browser/chromeos/gdata/gdata_wapi_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/in_process_browser_test.h"
@@ -30,7 +30,7 @@ class GDataTest : public InProcessBrowserTest {
virtual void SetUpOnMainThread() OVERRIDE {
ASSERT_TRUE(gdata_test_server_.Start());
- service_.reset(new gdata::DocumentsService);
+ service_.reset(new gdata::GDataWapiService);
service_->Initialize(browser()->profile());
service_->auth_service_for_testing()->set_access_token_for_testing(
net::TestServer::kGDataAuthToken);
@@ -46,10 +46,10 @@ class GDataTest : public InProcessBrowserTest {
}
net::TestServer gdata_test_server_;
- scoped_ptr<gdata::DocumentsService> service_;
+ scoped_ptr<gdata::GDataWapiService> service_;
};
-// The test callback for DocumentsService::DownloadFile().
+// The test callback for GDataWapiService::DownloadFile().
void TestDownloadCallback(gdata::GDataErrorCode* result,
std::string* contents,
gdata::GDataErrorCode error,
@@ -61,7 +61,7 @@ void TestDownloadCallback(gdata::GDataErrorCode* result,
MessageLoop::current()->Quit();
}
-// The test callback for DocumentsService::GetDocuments().
+// The test callback for GDataWapiService::GetDocuments().
void TestGetDocumentsCallback(gdata::GDataErrorCode* result_code,
base::Value** result_data,
gdata::GDataErrorCode error,
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_wapi_service.cc ('k') | chrome/browser/chromeos/gdata/mock_documents_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698