OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "chrome/browser/safe_browsing/incident_reporting/platform_state_store.h
" | 5 #include "chrome/browser/safe_browsing/incident_reporting/platform_state_store.h
" |
6 | 6 |
7 #if defined(USE_PLATFORM_STATE_STORE) | 7 #if defined(USE_PLATFORM_STATE_STORE) |
8 | 8 |
| 9 #include <stdint.h> |
| 10 |
9 #include "base/json/json_reader.h" | 11 #include "base/json/json_reader.h" |
10 #include "base/macros.h" | 12 #include "base/macros.h" |
11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
12 #include "base/values.h" | 14 #include "base/values.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
14 | 16 |
15 namespace safe_browsing { | 17 namespace safe_browsing { |
16 namespace platform_state_store { | 18 namespace platform_state_store { |
17 | 19 |
18 namespace { | 20 namespace { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 PlatformStateStoreLoadResult load_result = | 73 PlatformStateStoreLoadResult load_result = |
72 DeserializeIncidentsSent(data, deserialized.get()); | 74 DeserializeIncidentsSent(data, deserialized.get()); |
73 ASSERT_EQ(PlatformStateStoreLoadResult::SUCCESS, load_result); | 75 ASSERT_EQ(PlatformStateStoreLoadResult::SUCCESS, load_result); |
74 ASSERT_TRUE(deserialized->Equals(incidents_sent.get())); | 76 ASSERT_TRUE(deserialized->Equals(incidents_sent.get())); |
75 } | 77 } |
76 | 78 |
77 } // namespace platform_state_store | 79 } // namespace platform_state_store |
78 } // namespace safe_browsing | 80 } // namespace safe_browsing |
79 | 81 |
80 #endif // USE_PLATFORM_STATE_STORE | 82 #endif // USE_PLATFORM_STATE_STORE |
OLD | NEW |