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

Side by Side Diff: update_attempter_mock.h

Issue 6594025: AU: Full proxy support (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: fixes for review Created 9 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « update_attempter.cc ('k') | update_attempter_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__ 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__
6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__ 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__
7 7
8 #include <gmock/gmock.h> 8 #include <gmock/gmock.h>
9 9
10 #include "update_engine/mock_dbus_interface.h" 10 #include "update_engine/mock_dbus_interface.h"
11 #include "update_engine/update_attempter.h" 11 #include "update_engine/update_attempter.h"
12 12
13 namespace chromeos_update_engine { 13 namespace chromeos_update_engine {
14 14
15 class UpdateAttempterMock : public UpdateAttempter { 15 class UpdateAttempterMock : public UpdateAttempter {
16 public: 16 public:
17 UpdateAttempterMock() : UpdateAttempter(NULL, NULL, &dbus_) {} 17 explicit UpdateAttempterMock(MockDbusGlib* dbus)
18 : UpdateAttempter(NULL, NULL, dbus) {}
18 19
19 MOCK_METHOD3(Update, void(const std::string& app_version, 20 MOCK_METHOD3(Update, void(const std::string& app_version,
20 const std::string& omaha_url, 21 const std::string& omaha_url,
21 bool obey_proxies)); 22 bool obey_proxies));
22 MockDbusGlib dbus_;
23 }; 23 };
24 24
25 } // namespace chromeos_update_engine 25 } // namespace chromeos_update_engine
26 26
27 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__ 27 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_UPDATE_ATTEMPTER_MOCK_H__
OLDNEW
« no previous file with comments | « update_attempter.cc ('k') | update_attempter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698