| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/sync/test/fake_server/fake_server_verifier.h" | 5 #include "components/sync/test/fake_server/fake_server_verifier.h" |
| 6 | 6 |
| 7 #include <stddef.h> | |
| 8 | |
| 9 #include <map> | 7 #include <map> |
| 10 #include <memory> | 8 #include <memory> |
| 11 #include <set> | 9 #include <set> |
| 12 #include <vector> | 10 #include <vector> |
| 13 | 11 |
| 14 #include "base/json/json_writer.h" | 12 #include "base/json/json_writer.h" |
| 15 #include "base/values.h" | |
| 16 #include "components/sync/base/model_type.h" | |
| 17 #include "components/sync/test/fake_server/fake_server.h" | 13 #include "components/sync/test/fake_server/fake_server.h" |
| 18 #include "components/sync/test/fake_server/sessions_hierarchy.h" | |
| 19 #include "testing/gtest/include/gtest/gtest.h" | |
| 20 | 14 |
| 21 using base::JSONWriter; | 15 using base::JSONWriter; |
| 22 using std::string; | 16 using std::string; |
| 23 using testing::AssertionFailure; | 17 using testing::AssertionFailure; |
| 24 using testing::AssertionResult; | 18 using testing::AssertionResult; |
| 25 using testing::AssertionSuccess; | 19 using testing::AssertionSuccess; |
| 26 | 20 |
| 27 namespace fake_server { | 21 namespace fake_server { |
| 28 | 22 |
| 29 namespace { | 23 namespace { |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 return AssertionFailure() << "Malformed data: Tab entity not found."; | 172 return AssertionFailure() << "Malformed data: Tab entity not found."; |
| 179 } | 173 } |
| 180 tab_urls.insert(tab_ids_to_urls[tab_id]); | 174 tab_urls.insert(tab_ids_to_urls[tab_id]); |
| 181 } | 175 } |
| 182 actual_sessions.AddWindow(tab_urls); | 176 actual_sessions.AddWindow(tab_urls); |
| 183 } | 177 } |
| 184 return VerifySessionsHierarchyEquality(expected_sessions, actual_sessions); | 178 return VerifySessionsHierarchyEquality(expected_sessions, actual_sessions); |
| 185 } | 179 } |
| 186 | 180 |
| 187 } // namespace fake_server | 181 } // namespace fake_server |
| OLD | NEW |