| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/sessions/session_state.h" | 5 #include "sync/sessions/session_state.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/base64.h" | 9 #include "base/base64.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/test/values_test_util.h" | 11 #include "base/test/values_test_util.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "base/values.h" | 13 #include "base/values.h" |
| 14 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" | 14 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" |
| 15 #include "sync/internal_api/public/sessions/sync_source_info.h" | 15 #include "sync/internal_api/public/sessions/sync_source_info.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 17 |
| 18 namespace csync { | 18 namespace syncer { |
| 19 namespace sessions { | 19 namespace sessions { |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 using base::ExpectDictBooleanValue; | 22 using base::ExpectDictBooleanValue; |
| 23 using base::ExpectDictDictionaryValue; | 23 using base::ExpectDictDictionaryValue; |
| 24 using base::ExpectDictIntegerValue; | 24 using base::ExpectDictIntegerValue; |
| 25 using base::ExpectDictListValue; | 25 using base::ExpectDictListValue; |
| 26 using base::ExpectDictStringValue; | 26 using base::ExpectDictStringValue; |
| 27 | 27 |
| 28 class SessionStateTest : public testing::Test {}; | 28 class SessionStateTest : public testing::Test {}; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 ExpectDictIntegerValue(kNumSimpleConflicts, *value, | 125 ExpectDictIntegerValue(kNumSimpleConflicts, *value, |
| 126 "numSimpleConflicts"); | 126 "numSimpleConflicts"); |
| 127 ExpectDictIntegerValue(kNumServerConflicts, *value, | 127 ExpectDictIntegerValue(kNumServerConflicts, *value, |
| 128 "numServerConflicts"); | 128 "numServerConflicts"); |
| 129 ExpectDictDictionaryValue(*expected_source_value, *value, "source"); | 129 ExpectDictDictionaryValue(*expected_source_value, *value, "source"); |
| 130 ExpectDictBooleanValue(false, *value, "notificationsEnabled"); | 130 ExpectDictBooleanValue(false, *value, "notificationsEnabled"); |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace | 133 } // namespace |
| 134 } // namespace sessions | 134 } // namespace sessions |
| 135 } // namespace csync | 135 } // namespace syncer |
| OLD | NEW |