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

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

Issue 10790135: chromeos: Rename MockGDataSyncClient to MocKGDataCacheObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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_gdata_cache_observer.h
diff --git a/chrome/browser/chromeos/gdata/mock_gdata_cache_observer.h b/chrome/browser/chromeos/gdata/mock_gdata_cache_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..592887776000424a14da878d7cf9d89f699f9d8d
--- /dev/null
+++ b/chrome/browser/chromeos/gdata/mock_gdata_cache_observer.h
@@ -0,0 +1,28 @@
+// 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_GDATA_CACHE_OBSERVER_H_
+#define CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_CACHE_OBSERVER_H_
+
+#include "chrome/browser/chromeos/gdata/gdata_cache.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace gdata {
+
+// Mock for GDataCache::Observer.
+class MockGDataCacheObserver : public GDataCache::Observer {
+ public:
+ MockGDataCacheObserver();
+ virtual ~MockGDataCacheObserver();
+
+ MOCK_METHOD2(OnCachePinned, void(const std::string& resource_id,
+ const std::string& md5));
+ MOCK_METHOD2(OnCacheUnpinned, void(const std::string& resource_id,
+ const std::string& md5));
+ MOCK_METHOD1(OnCacheCommitted, void(const std::string& resource_id));
+};
+
+} // namespace gdata
+
+#endif // CHROME_BROWSER_CHROMEOS_GDATA_MOCK_GDATA_CACHE_OBSERVER_H_
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_sync_client.h ('k') | chrome/browser/chromeos/gdata/mock_gdata_cache_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698