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

Unified Diff: components/update_client/update_client_unittest.cc

Issue 2856573003: Fix the broken XML parser due to version mismatch. (Closed)
Patch Set: Created 3 years, 8 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: components/update_client/update_client_unittest.cc
diff --git a/components/update_client/update_client_unittest.cc b/components/update_client/update_client_unittest.cc
index 8a4d7059f7df6c5aae78e8e8f52755eb346892fc..94772a98fa20332b2d74c98cfaaf931413a13013 100644
--- a/components/update_client/update_client_unittest.cc
+++ b/components/update_client/update_client_unittest.cc
@@ -360,7 +360,7 @@ TEST_F(UpdateClientTest, TwoCrxUpdateNoUpdate) {
Fake the following response:
<?xml version='1.0' encoding='UTF-8'?>
- <response protocol='3.0'>
+ <response protocol='3.1'>
<app appid='jebgalgnebhfojomionfpkfelancnnkf'>
<updatecheck status='ok'>
<urls>
@@ -574,7 +574,7 @@ TEST_F(UpdateClientTest, TwoCrxUpdate) {
Fake the following response:
<?xml version='1.0' encoding='UTF-8'?>
- <response protocol='3.0'>
+ <response protocol='3.1'>
<app appid='jebgalgnebhfojomionfpkfelancnnkf'>
<updatecheck status='ok'>
<urls>
@@ -846,7 +846,7 @@ TEST_F(UpdateClientTest, TwoCrxUpdateDownloadTimeout) {
Fake the following response:
<?xml version='1.0' encoding='UTF-8'?>
- <response protocol='3.0'>
+ <response protocol='3.1'>
<app appid='jebgalgnebhfojomionfpkfelancnnkf'>
<updatecheck status='ok'>
<urls>
@@ -1124,7 +1124,7 @@ TEST_F(UpdateClientTest, OneCrxDiffUpdate) {
/*
Fake the following response:
<?xml version='1.0' encoding='UTF-8'?>
- <response protocol='3.0'>
+ <response protocol='3.1'>
<app appid='ihfokbkgjpifnbbojhneepfflplebdkc'>
<updatecheck status='ok'>
<urls>
@@ -1164,7 +1164,7 @@ TEST_F(UpdateClientTest, OneCrxDiffUpdate) {
/*
Fake the following response:
<?xml version='1.0' encoding='UTF-8'?>
- <response protocol='3.0'>
+ <response protocol='3.1'>
<app appid='ihfokbkgjpifnbbojhneepfflplebdkc'>
<updatecheck status='ok'>
<urls>
@@ -1432,7 +1432,7 @@ TEST_F(UpdateClientTest, OneCrxInstallError) {
Fake the following response:
<?xml version='1.0' encoding='UTF-8'?>
- <response protocol='3.0'>
+ <response protocol='3.1'>
<app appid='jebgalgnebhfojomionfpkfelancnnkf'>
<updatecheck status='ok'>
<urls>
@@ -1627,7 +1627,7 @@ TEST_F(UpdateClientTest, OneCrxDiffUpdateFailsFullUpdateSucceeds) {
/*
Fake the following response:
<?xml version='1.0' encoding='UTF-8'?>
- <response protocol='3.0'>
+ <response protocol='3.1'>
<app appid='ihfokbkgjpifnbbojhneepfflplebdkc'>
<updatecheck status='ok'>
<urls>
@@ -1669,7 +1669,7 @@ TEST_F(UpdateClientTest, OneCrxDiffUpdateFailsFullUpdateSucceeds) {
/*
Fake the following response:
<?xml version='1.0' encoding='UTF-8'?>
- <response protocol='3.0'>
+ <response protocol='3.1'>
<app appid='ihfokbkgjpifnbbojhneepfflplebdkc'>
<updatecheck status='ok'>
<urls>
@@ -2045,7 +2045,7 @@ TEST_F(UpdateClientTest, OneCrxInstall) {
Fake the following response:
<?xml version='1.0' encoding='UTF-8'?>
- <response protocol='3.0'>
+ <response protocol='3.1'>
<app appid='jebgalgnebhfojomionfpkfelancnnkf'>
<updatecheck status='ok'>
<urls>
@@ -2681,7 +2681,7 @@ TEST_F(UpdateClientTest, TwoCrxUpdateOneUpdateDisabled) {
Fake the following response:
<?xml version='1.0' encoding='UTF-8'?>
- <response protocol='3.0'>
+ <response protocol='3.1'>
<app appid='jebgalgnebhfojomionfpkfelancnnkf'>
<updatecheck status='ok'>
<urls>
« no previous file with comments | « components/test/data/update_client/updatecheck_reply_noupdate.xml ('k') | components/update_client/update_response.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698