Index: chrome/browser/chromeos/gdata/mock_drive_web_apps_registry.h |
diff --git a/chrome/browser/chromeos/gdata/mock_drive_web_apps_registry.h b/chrome/browser/chromeos/gdata/mock_drive_web_apps_registry.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2acc0a07f3c589a07ebe51d7b47183b649b12d24 |
--- /dev/null |
+++ b/chrome/browser/chromeos/gdata/mock_drive_web_apps_registry.h |
@@ -0,0 +1,31 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_CHROMEOS_GDATA_MOCK_DRIVE_WEB_APPS_REGISTORY_H_ |
+#define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_DRIVE_WEB_APPS_REGISTORY_H_ |
+ |
+#include "chrome/browser/chromeos/gdata/drive_api_parser.h" |
+#include "chrome/browser/chromeos/gdata/drive_file_system.h" |
+#include "chrome/browser/chromeos/gdata/drive_webapps_registry.h" |
+#include "testing/gmock/include/gmock/gmock.h" |
+ |
+namespace gdata { |
+ |
+class MockDriveWebAppsRegistry : public DriveWebAppsRegistryInterface { |
+ public: |
+ MockDriveWebAppsRegistry(); |
+ virtual ~MockDriveWebAppsRegistry(); |
+ |
+ MOCK_METHOD3(GetWebAppsForFile, void(const FilePath& file, |
+ const std::string& mime_type, |
+ ScopedVector<DriveWebAppInfo>* apps)); |
+ MOCK_METHOD1(GetExtensionsForWebStoreApp, |
+ std::set<std::string>(const std::string& web_store_id)); |
+ MOCK_METHOD1(UpdateFromFeed, void(const AccountMetadataFeed& metadata)); |
+ MOCK_METHOD1(UpdateFromApplicationList, void(const AppList& applist)); |
+}; |
+ |
+} |
satorux1
2012/08/30 04:38:15
} // namespace gdata
yoshiki
2012/08/30 15:23:45
Done. https://chromiumcodereview.appspot.com/10905
|
+ |
+#endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_DRIVE_WEB_APPS_REGISTORY_H_ |