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_sessions/session_data_type_controller.h" | 5 #include "components/sync_sessions/session_data_type_controller.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 bool HasWindow() const override { return false; } | 40 bool HasWindow() const override { return false; } |
41 SessionID::id_type GetSessionId() const override { return 0; } | 41 SessionID::id_type GetSessionId() const override { return 0; } |
42 int GetTabCount() const override { return 0; } | 42 int GetTabCount() const override { return 0; } |
43 int GetActiveIndex() const override { return 0; } | 43 int GetActiveIndex() const override { return 0; } |
44 bool IsApp() const override { return false; } | 44 bool IsApp() const override { return false; } |
45 bool IsTypeTabbed() const override { return false; } | 45 bool IsTypeTabbed() const override { return false; } |
46 bool IsTypePopup() const override { return false; } | 46 bool IsTypePopup() const override { return false; } |
47 bool IsTabPinned(const SyncedTabDelegate* tab) const override { | 47 bool IsTabPinned(const SyncedTabDelegate* tab) const override { |
48 return false; | 48 return false; |
49 } | 49 } |
50 SyncedTabDelegate* GetTabAt(int index) const override { return NULL; } | 50 SyncedTabDelegate* GetTabAt(int index) const override { return nullptr; } |
51 SessionID::id_type GetTabIdAt(int index) const override { return 0; } | 51 SessionID::id_type GetTabIdAt(int index) const override { return 0; } |
52 | 52 |
53 bool IsSessionRestoreInProgress() const override { | 53 bool IsSessionRestoreInProgress() const override { |
54 return is_restore_in_progress_; | 54 return is_restore_in_progress_; |
55 } | 55 } |
56 | 56 |
57 bool ShouldSync() const override { return false; } | 57 bool ShouldSync() const override { return false; } |
58 | 58 |
59 void SetSessionRestoreInProgress(bool is_restore_in_progress) { | 59 void SetSessionRestoreInProgress(bool is_restore_in_progress) { |
60 is_restore_in_progress_ = is_restore_in_progress; | 60 is_restore_in_progress_ = is_restore_in_progress; |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 EXPECT_EQ(syncer::DataTypeController::MODEL_STARTING, controller()->state()); | 253 EXPECT_EQ(syncer::DataTypeController::MODEL_STARTING, controller()->state()); |
254 | 254 |
255 local_device()->SetInitialized(true); | 255 local_device()->SetInitialized(true); |
256 EXPECT_EQ(syncer::DataTypeController::MODEL_LOADED, controller()->state()); | 256 EXPECT_EQ(syncer::DataTypeController::MODEL_LOADED, controller()->state()); |
257 EXPECT_TRUE(LoadResult()); | 257 EXPECT_TRUE(LoadResult()); |
258 } | 258 } |
259 | 259 |
260 } // namespace | 260 } // namespace |
261 | 261 |
262 } // namespace sync_sessions | 262 } // namespace sync_sessions |
OLD | NEW |