| 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 "sync/test/fake_server/fake_server_verifier.h" | 5 #include "sync/test/fake_server/fake_server_verifier.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <map> | 9 #include <map> |
| 8 #include <set> | 10 #include <set> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/json/json_writer.h" | 13 #include "base/json/json_writer.h" |
| 12 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/values.h" | 15 #include "base/values.h" |
| 14 #include "sync/internal_api/public/base/model_type.h" | 16 #include "sync/internal_api/public/base/model_type.h" |
| 15 #include "sync/test/fake_server/fake_server.h" | 17 #include "sync/test/fake_server/fake_server.h" |
| 16 #include "sync/test/fake_server/sessions_hierarchy.h" | 18 #include "sync/test/fake_server/sessions_hierarchy.h" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 return AssertionFailure() << "Malformed data: Tab entity not found."; | 182 return AssertionFailure() << "Malformed data: Tab entity not found."; |
| 181 } | 183 } |
| 182 tab_urls.insert(tab_ids_to_urls[tab_id]); | 184 tab_urls.insert(tab_ids_to_urls[tab_id]); |
| 183 } | 185 } |
| 184 actual_sessions.AddWindow(tab_urls); | 186 actual_sessions.AddWindow(tab_urls); |
| 185 } | 187 } |
| 186 return VerifySessionsHierarchyEquality(expected_sessions, actual_sessions); | 188 return VerifySessionsHierarchyEquality(expected_sessions, actual_sessions); |
| 187 } | 189 } |
| 188 | 190 |
| 189 } // namespace fake_server | 191 } // namespace fake_server |
| OLD | NEW |