| 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 "sync/internal_api/public/model_type_store_backend.h" | 5 #include "components/sync/core/model_type_store_backend.h" |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
| 8 #include "third_party/leveldatabase/src/include/leveldb/env.h" | 8 #include "third_party/leveldatabase/src/include/leveldb/env.h" |
| 9 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" | 9 #include "third_party/leveldatabase/src/include/leveldb/write_batch.h" |
| 10 | 10 |
| 11 namespace syncer_v2 { | 11 namespace syncer_v2 { |
| 12 | 12 |
| 13 class ModelTypeStoreBackendTest : public testing::Test { | 13 class ModelTypeStoreBackendTest : public testing::Test { |
| 14 public: | 14 public: |
| 15 scoped_refptr<ModelTypeStoreBackend> GetOrCreateBackend() { | 15 scoped_refptr<ModelTypeStoreBackend> GetOrCreateBackend() { |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 ASSERT_TRUE(backend_second->HasOneRef()); | 181 ASSERT_TRUE(backend_second->HasOneRef()); |
| 182 ASSERT_FALSE(BackendExistsForPath(path)); | 182 ASSERT_FALSE(BackendExistsForPath(path)); |
| 183 | 183 |
| 184 // delete another backend. | 184 // delete another backend. |
| 185 backend_second = nullptr; | 185 backend_second = nullptr; |
| 186 ASSERT_FALSE(backend_second.get()); | 186 ASSERT_FALSE(backend_second.get()); |
| 187 ASSERT_FALSE(BackendExistsForPath("/test_db2")); | 187 ASSERT_FALSE(BackendExistsForPath("/test_db2")); |
| 188 } | 188 } |
| 189 | 189 |
| 190 } // namespace syncer_v2 | 190 } // namespace syncer_v2 |
| OLD | NEW |