Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 24 matching lines...) Expand all Loading... | |
| 35 static void VerifySyncedSession( | 35 static void VerifySyncedSession( |
| 36 const std::string& tag, | 36 const std::string& tag, |
| 37 const std::vector<std::vector<SessionID::id_type>>& windows, | 37 const std::vector<std::vector<SessionID::id_type>>& windows, |
| 38 const sync_driver::SyncedSession& session); | 38 const sync_driver::SyncedSession& session); |
| 39 | 39 |
| 40 void BuildTabSpecifics(const std::string& tag, | 40 void BuildTabSpecifics(const std::string& tag, |
| 41 int window_id, | 41 int window_id, |
| 42 int tab_id, | 42 int tab_id, |
| 43 sync_pb::SessionSpecifics* tab_base); | 43 sync_pb::SessionSpecifics* tab_base); |
| 44 | 44 |
| 45 void BuildTabSpecifics(const std::string& tag, | |
|
Nicolas Zea
2016/04/12 20:38:03
This entire file should really have comments, but
skym
2016/04/12 22:12:14
Done.
| |
| 46 int window_id, | |
| 47 int tab_id, | |
| 48 int tab_node_id, | |
| 49 sync_pb::SessionSpecifics* tab_base); | |
| 50 | |
| 45 sync_pb::SessionSpecifics BuildForeignSession( | 51 sync_pb::SessionSpecifics BuildForeignSession( |
| 46 const std::string& tag, | 52 const std::string& tag, |
| 47 const std::vector<SessionID::id_type>& tab_list, | 53 const std::vector<SessionID::id_type>& tab_list, |
| 48 std::vector<sync_pb::SessionSpecifics>* tabs); | 54 std::vector<sync_pb::SessionSpecifics>* tabs); |
| 49 | 55 |
| 50 void Reset(); | 56 void Reset(); |
| 51 | 57 |
| 52 private: | 58 private: |
| 53 int max_tab_node_id_; | 59 int max_tab_node_id_; |
| 54 | 60 |
| 55 DISALLOW_COPY_AND_ASSIGN(SessionSyncTestHelper); | 61 DISALLOW_COPY_AND_ASSIGN(SessionSyncTestHelper); |
| 56 }; | 62 }; |
| 57 | 63 |
| 58 } // namespace browser_sync | 64 } // namespace browser_sync |
| 59 | 65 |
| 60 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_ | 66 #endif // CHROME_BROWSER_SYNC_GLUE_SESSION_SYNC_TEST_HELPER_H_ |
| OLD | NEW |