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

Unified Diff: prefs_mock.h

Issue 2856070: Don't send machine and user ID to Omaha anymore. Send a/r pings instead. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: Address review comments. Created 10 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: prefs_mock.h
diff --git a/prefs_mock.h b/prefs_mock.h
new file mode 100644
index 0000000000000000000000000000000000000000..cf030f089371948249c85abe2f4a7d6132323da1
--- /dev/null
+++ b/prefs_mock.h
@@ -0,0 +1,24 @@
+// Copyright (c) 2010 The Chromium OS 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 CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_MOCK_H__
+#define CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_MOCK_H__
+
+#include "gmock/gmock.h"
+#include "update_engine/prefs_interface.h"
+
+namespace chromeos_update_engine {
+
+class PrefsMock : public PrefsInterface {
+ public:
+ MOCK_METHOD2(GetString, bool(const std::string& key, std::string* value));
+ MOCK_METHOD2(SetString, bool(const std::string& key,
+ const std::string& value));
+ MOCK_METHOD2(GetInt64, bool(const std::string& key, int64_t* value));
+ MOCK_METHOD2(SetInt64, bool(const std::string& key, const int64_t value));
+};
+
+} // namespace chromeos_update_engine
+
+#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_PREFS_MOCK_H__
« omaha_request_action.h ('K') | « prefs_interface.h ('k') | prefs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698