| 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 "testing/gtest/include/gtest/gtest.h" | 5 #include "testing/gtest/include/gtest/gtest.h" |
| 6 | 6 |
| 7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 586 | 586 |
| 587 storage_->Set(DEFAULTS, "c", *byte_value_1_); | 587 storage_->Set(DEFAULTS, "c", *byte_value_1_); |
| 588 | 588 |
| 589 EXPECT_EQ(6u, storage_->GetBytesInUse()); | 589 EXPECT_EQ(6u, storage_->GetBytesInUse()); |
| 590 EXPECT_EQ(2u, storage_->GetBytesInUse("a")); | 590 EXPECT_EQ(2u, storage_->GetBytesInUse("a")); |
| 591 EXPECT_EQ(2u, storage_->GetBytesInUse("b")); | 591 EXPECT_EQ(2u, storage_->GetBytesInUse("b")); |
| 592 EXPECT_EQ(4u, storage_->GetBytesInUse(ab)); | 592 EXPECT_EQ(4u, storage_->GetBytesInUse(ab)); |
| 593 } | 593 } |
| 594 | 594 |
| 595 } // namespace extensions | 595 } // namespace extensions |
| OLD | NEW |