| 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 #include <vector> | 5 #include <vector> |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/memory/scoped_vector.h" | |
| 9 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 10 #include "content/common/indexed_db/indexed_db_key.h" | 9 #include "content/common/indexed_db/indexed_db_key.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 11 |
| 13 namespace content { | 12 namespace content { |
| 14 | 13 |
| 15 namespace { | 14 namespace { |
| 16 | 15 |
| 17 TEST(IndexedDBKeyTest, KeySizeEstimates) { | 16 TEST(IndexedDBKeyTest, KeySizeEstimates) { |
| 18 std::vector<IndexedDBKey> keys; | 17 std::vector<IndexedDBKey> keys; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 49 | 48 |
| 50 ASSERT_EQ(keys.size(), estimates.size()); | 49 ASSERT_EQ(keys.size(), estimates.size()); |
| 51 for (size_t i = 0; i < keys.size(); ++i) { | 50 for (size_t i = 0; i < keys.size(); ++i) { |
| 52 EXPECT_EQ(estimates[i], keys[i].size_estimate()); | 51 EXPECT_EQ(estimates[i], keys[i].size_estimate()); |
| 53 } | 52 } |
| 54 } | 53 } |
| 55 | 54 |
| 56 } // namespace | 55 } // namespace |
| 57 | 56 |
| 58 } // namespace content | 57 } // namespace content |
| OLD | NEW |