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

Unified Diff: chrome/browser/chromeos/gdata/mock_drive_web_apps_registry.h

Issue 10832241: Drive: Removes unused cache files after the initial feed fetch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix the build error. 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/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_

Powered by Google App Engine
This is Rietveld 408576698