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

Side by Side Diff: sync/syncable/directory_backing_store_unittest.cc

Issue 10917246: [Sync] Add keystore encryption info to about:sync (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + address comments Created 8 years, 3 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 | Annotate | Revision Log
OLDNEW
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 <string> 7 #include <string>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/scoped_temp_dir.h" 12 #include "base/scoped_temp_dir.h"
13 #include "base/stl_util.h" 13 #include "base/stl_util.h"
14 #include "base/string_number_conversions.h" 14 #include "base/string_number_conversions.h"
15 #include "sql/connection.h" 15 #include "sql/connection.h"
16 #include "sql/statement.h" 16 #include "sql/statement.h"
17 #include "sync/internal_api/public/util/time.h"
17 #include "sync/protocol/bookmark_specifics.pb.h" 18 #include "sync/protocol/bookmark_specifics.pb.h"
18 #include "sync/protocol/sync.pb.h" 19 #include "sync/protocol/sync.pb.h"
19 #include "sync/syncable/directory_backing_store.h" 20 #include "sync/syncable/directory_backing_store.h"
20 #include "sync/syncable/on_disk_directory_backing_store.h" 21 #include "sync/syncable/on_disk_directory_backing_store.h"
21 #include "sync/syncable/syncable-inl.h" 22 #include "sync/syncable/syncable-inl.h"
22 #include "sync/test/test_directory_backing_store.h" 23 #include "sync/test/test_directory_backing_store.h"
23 #include "sync/util/time.h"
24 #include "testing/gtest/include/gtest/gtest-param-test.h" 24 #include "testing/gtest/include/gtest/gtest-param-test.h"
25 25
26 namespace syncer { 26 namespace syncer {
27 namespace syncable { 27 namespace syncable {
28 28
29 extern const int32 kCurrentDBVersion; 29 extern const int32 kCurrentDBVersion;
30 30
31 class MigrationTest : public testing::TestWithParam<int> { 31 class MigrationTest : public testing::TestWithParam<int> {
32 public: 32 public:
33 virtual void SetUp() { 33 virtual void SetUp() {
(...skipping 2418 matching lines...) Expand 10 before | Expand all | Expand 10 after
2452 const std::string& guid2 = TestDirectoryBackingStore::GenerateCacheGUID(); 2452 const std::string& guid2 = TestDirectoryBackingStore::GenerateCacheGUID();
2453 EXPECT_EQ(24U, guid1.size()); 2453 EXPECT_EQ(24U, guid1.size());
2454 EXPECT_EQ(24U, guid2.size()); 2454 EXPECT_EQ(24U, guid2.size());
2455 // In theory this test can fail, but it won't before the universe 2455 // In theory this test can fail, but it won't before the universe
2456 // dies of heat death. 2456 // dies of heat death.
2457 EXPECT_NE(guid1, guid2); 2457 EXPECT_NE(guid1, guid2);
2458 } 2458 }
2459 2459
2460 } // namespace syncable 2460 } // namespace syncable
2461 } // namespace syncer 2461 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698