Index: update_attempter_mock.h |
diff --git a/update_attempter_mock.h b/update_attempter_mock.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..56a0b4212e16adcb3720a27cb576e13789fe8bca |
--- /dev/null |
+++ b/update_attempter_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_UPDATE_ATTEMPTER_MOCK_H__ |
+#define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__ |
+ |
+#include <gmock/gmock.h> |
+ |
+#include "update_engine/update_attempter.h" |
+ |
+namespace chromeos_update_engine { |
+ |
+class UpdateAttempterMock : public UpdateAttempter { |
+ public: |
+ UpdateAttempterMock() : UpdateAttempter(NULL, NULL) {} |
+ |
+ MOCK_METHOD2(Update, void(const std::string& app_version, |
+ const std::string& omaha_url)); |
+}; |
+ |
+} // namespace chromeos_update_engine |
+ |
+#endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__ |