| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium 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 // Unit tests for the SyncApi. Note that a lot of the underlying | 5 // Unit tests for the SyncApi. Note that a lot of the underlying |
| 6 // functionality is provided by the Syncable layer, which has its own | 6 // functionality is provided by the Syncable layer, which has its own |
| 7 // unit tests. We'll test SyncApi specific things in this harness. | 7 // unit tests. We'll test SyncApi specific things in this harness. |
| 8 | 8 |
| 9 #include <cstddef> | 9 #include <cstddef> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 class TestHttpPostProviderInterface : public HttpPostProviderInterface { | 651 class TestHttpPostProviderInterface : public HttpPostProviderInterface { |
| 652 public: | 652 public: |
| 653 virtual ~TestHttpPostProviderInterface() {} | 653 virtual ~TestHttpPostProviderInterface() {} |
| 654 | 654 |
| 655 virtual void SetUserAgent(const char* user_agent) OVERRIDE {} | 655 virtual void SetUserAgent(const char* user_agent) OVERRIDE {} |
| 656 virtual void SetExtraRequestHeaders(const char* headers) OVERRIDE {} | 656 virtual void SetExtraRequestHeaders(const char* headers) OVERRIDE {} |
| 657 virtual void SetURL(const char* url, int port) OVERRIDE {} | 657 virtual void SetURL(const char* url, int port) OVERRIDE {} |
| 658 virtual void SetPostPayload(const char* content_type, | 658 virtual void SetPostPayload(const char* content_type, |
| 659 int content_length, | 659 int content_length, |
| 660 const char* content) OVERRIDE {} | 660 const char* content) OVERRIDE {} |
| 661 virtual bool MakeSynchronousPost(int* os_error_code, int* response_code) | 661 virtual bool MakeSynchronousPost(int* error_code, int* response_code) |
| 662 OVERRIDE { | 662 OVERRIDE { |
| 663 return false; | 663 return false; |
| 664 } | 664 } |
| 665 virtual int GetResponseContentLength() const OVERRIDE { | 665 virtual int GetResponseContentLength() const OVERRIDE { |
| 666 return 0; | 666 return 0; |
| 667 } | 667 } |
| 668 virtual const char* GetResponseContent() const OVERRIDE { | 668 virtual const char* GetResponseContent() const OVERRIDE { |
| 669 return ""; | 669 return ""; |
| 670 } | 670 } |
| 671 virtual const std::string GetResponseHeaderValue( | 671 virtual const std::string GetResponseHeaderValue( |
| (...skipping 844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 ReadNode node(&trans); | 1516 ReadNode node(&trans); |
| 1517 EXPECT_TRUE(node.InitByIdLookup(node1)); | 1517 EXPECT_TRUE(node.InitByIdLookup(node1)); |
| 1518 EXPECT_EQ(syncable::BOOKMARKS, node.GetModelType()); | 1518 EXPECT_EQ(syncable::BOOKMARKS, node.GetModelType()); |
| 1519 EXPECT_EQ(title, node.GetTitle()); | 1519 EXPECT_EQ(title, node.GetTitle()); |
| 1520 EXPECT_EQ(title, node.GetBookmarkSpecifics().title()); | 1520 EXPECT_EQ(title, node.GetBookmarkSpecifics().title()); |
| 1521 EXPECT_EQ(url, node.GetBookmarkSpecifics().url()); | 1521 EXPECT_EQ(url, node.GetBookmarkSpecifics().url()); |
| 1522 } | 1522 } |
| 1523 } | 1523 } |
| 1524 | 1524 |
| 1525 } // namespace browser_sync | 1525 } // namespace browser_sync |
| OLD | NEW |