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

Unified Diff: update_attempter_unittest.cc

Issue 5205002: AU: Manual proxy support (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: missed one fix for review Created 10 years, 1 month 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
« no previous file with comments | « update_attempter_mock.h ('k') | update_check_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: update_attempter_unittest.cc
diff --git a/update_attempter_unittest.cc b/update_attempter_unittest.cc
index 89adb03b29a102f82328a3c03dce9f3a3006cb03..a65ffea68f3003ee0a39ab973a86b38cb28dc91d 100644
--- a/update_attempter_unittest.cc
+++ b/update_attempter_unittest.cc
@@ -8,6 +8,7 @@
#include "update_engine/action_mock.h"
#include "update_engine/action_processor_mock.h"
#include "update_engine/filesystem_copier_action.h"
+#include "update_engine/mock_dbus_interface.h"
#include "update_engine/postinstall_runner_action.h"
#include "update_engine/prefs_mock.h"
#include "update_engine/update_attempter.h"
@@ -30,7 +31,8 @@ namespace chromeos_update_engine {
class UpdateAttempterUnderTest : public UpdateAttempter {
public:
UpdateAttempterUnderTest()
- : UpdateAttempter(NULL, NULL) {}
+ : UpdateAttempter(NULL, NULL, &dbus_) {}
+ MockDbusGlib dbus_;
};
class UpdateAttempterTest : public ::testing::Test {
@@ -181,7 +183,7 @@ TEST_F(UpdateAttempterTest, UpdateTest) {
}
EXPECT_CALL(*processor_, StartProcessing()).Times(1);
- attempter_.Update("", "");
+ attempter_.Update("", "", false);
EXPECT_EQ(0, attempter_.http_response_code());
EXPECT_EQ(&attempter_, processor_->delegate());
« no previous file with comments | « update_attempter_mock.h ('k') | update_check_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698