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

Side by Side Diff: chrome/browser/sync/test/integration/session_hierarchy_match_checker.h

Issue 2725813003: reland of [sync] Add Sessions integration tests (Closed)
Patch Set: Switch back to WaitForURLOnServer, make everything a constant Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/session_hierarchy_match_checker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 #ifndef CHROME_BROWSER_SYNC_TEST_INTEGRATION_SESSION_HIERARCHY_MATCH_CHECKER_H_
6 #define CHROME_BROWSER_SYNC_TEST_INTEGRATION_SESSION_HIERARCHY_MATCH_CHECKER_H_
7
8 #include "chrome/browser/sync/test/integration/single_client_status_change_check er.h"
9 #include "components/sync/test/fake_server/fake_server_verifier.h"
10 #include "components/sync/test/fake_server/sessions_hierarchy.h"
11
12 // Checker to block until the FakeServer records a SessionsHierarchy identical
13 // to the SessionsHierarchy specified in the constructor.
14 class SessionHierarchyMatchChecker : public SingleClientStatusChangeChecker {
15 public:
16 SessionHierarchyMatchChecker(
17 const fake_server::SessionsHierarchy& sessions_hierarchy,
18 browser_sync::ProfileSyncService* service,
19 fake_server::FakeServer* fake_server);
20
21 // StatusChangeChecker implementation.
22 bool IsExitConditionSatisfied() override;
23 std::string GetDebugMessage() const override;
24
25 private:
26 const fake_server::SessionsHierarchy sessions_hierarchy_;
27 fake_server::FakeServerVerifier verifier_;
28 };
29
30 #endif // CHROME_BROWSER_SYNC_TEST_INTEGRATION_SESSION_HIERARCHY_MATCH_CHECKER_ H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/test/integration/session_hierarchy_match_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698