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

Unified Diff: chrome/browser/extensions/api/sync_file_system/sync_file_system_apitest.cc

Issue 11663025: Added JavaScript API Test for getFileSyncStatus() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tzik review #1 Created 8 years 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 | « no previous file | chrome/test/data/extensions/api_test/sync_file_system/get_file_sync_status/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/sync_file_system/sync_file_system_apitest.cc
diff --git a/chrome/browser/extensions/api/sync_file_system/sync_file_system_apitest.cc b/chrome/browser/extensions/api/sync_file_system/sync_file_system_apitest.cc
index ef04e015ba74d4318e4a28ed5e36910cb7c1429d..8098c32893e912f4abee42533243508940f806ce 100644
--- a/chrome/browser/extensions/api/sync_file_system/sync_file_system_apitest.cc
+++ b/chrome/browser/extensions/api/sync_file_system/sync_file_system_apitest.cc
@@ -12,14 +12,16 @@
#include "chrome/browser/sync_file_system/sync_file_system_service.h"
#include "chrome/common/chrome_version_info.h"
#include "chrome/common/extensions/features/feature.h"
+#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/fileapi/syncable/sync_status_code.h"
#include "webkit/quota/quota_manager.h"
+using ::testing::_;
+using ::testing::Return;
using sync_file_system::MockRemoteFileSyncService;
using sync_file_system::RemoteFileSyncService;
using sync_file_system::SyncFileSystemServiceFactory;
-using ::testing::_;
namespace chrome {
@@ -77,6 +79,12 @@ IN_PROC_BROWSER_TEST_F(SyncFileSystemApiTest, DeleteFileSystem) {
<< message_;
}
+IN_PROC_BROWSER_TEST_F(SyncFileSystemApiTest, GetFileSyncStatus) {
+ EXPECT_CALL(*mock_remote_service(), IsConflicting(_)).WillOnce(Return(true));
+ ASSERT_TRUE(RunPlatformAppTest("sync_file_system/get_file_sync_status"))
+ << message_;
+}
+
IN_PROC_BROWSER_TEST_F(SyncFileSystemApiTest, GetUsageAndQuota) {
ASSERT_TRUE(RunExtensionTest("sync_file_system/get_usage_and_quota"))
<< message_;
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/sync_file_system/get_file_sync_status/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698