OLD | NEW |
| (Empty) |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/browser/sync/test/integration/session_hierarchy_match_checker.h
" | |
6 | |
7 SessionHierarchyMatchChecker::SessionHierarchyMatchChecker( | |
8 const fake_server::SessionsHierarchy& sessions_hierarchy, | |
9 browser_sync::ProfileSyncService* service, | |
10 fake_server::FakeServer* fake_server) | |
11 : SingleClientStatusChangeChecker(service), | |
12 sessions_hierarchy_(sessions_hierarchy), | |
13 verifier_(fake_server) {} | |
14 | |
15 bool SessionHierarchyMatchChecker::IsExitConditionSatisfied() { | |
16 return verifier_.VerifySessions(sessions_hierarchy_); | |
17 } | |
18 | |
19 std::string SessionHierarchyMatchChecker::GetDebugMessage() const { | |
20 return "Waiting for matching sessions hierarchy to be reflected in fake " | |
21 "server"; | |
22 } | |
OLD | NEW |