Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(459)

Side by Side Diff: components/sync/core/model_type_store_backend_unittest.cc

Issue 2388673002: Revert of [Sync] Move //components/sync to the syncer namespace. (patchset #5 id:40001 of https://co (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "components/sync/core/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 { 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() {
16 std::string path = "/test_db"; 16 std::string path = "/test_db";
17 return GetOrCreateBackendWithPath(path); 17 return GetOrCreateBackendWithPath(path);
18 } 18 }
19 19
20 scoped_refptr<ModelTypeStoreBackend> GetOrCreateBackendWithPath( 20 scoped_refptr<ModelTypeStoreBackend> GetOrCreateBackendWithPath(
21 std::string custom_path) { 21 std::string custom_path) {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 ASSERT_TRUE(backend_second.get()); 180 ASSERT_TRUE(backend_second.get());
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 190 } // namespace syncer_v2
OLDNEW
« no previous file with comments | « components/sync/core/model_type_store_backend.cc ('k') | components/sync/core/model_type_store_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698