OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/sync/syncable/syncable.h" | 5 #include "chrome/browser/sync/syncable/syncable.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include <sys/types.h> | 9 #include <sys/types.h> |
10 | 10 |
11 #include <iostream> | |
12 #include <limits> | 11 #include <limits> |
13 #include <string> | 12 #include <string> |
14 | 13 |
15 #if !defined(OS_WIN) | 14 #if !defined(OS_WIN) |
16 #define MAX_PATH PATH_MAX | 15 #define MAX_PATH PATH_MAX |
17 #include <ostream> | 16 #include <ostream> |
18 #include <stdio.h> | 17 #include <stdio.h> |
19 #include <sys/ipc.h> | 18 #include <sys/ipc.h> |
20 #include <sys/sem.h> | 19 #include <sys/sem.h> |
21 #include <sys/times.h> | 20 #include <sys/times.h> |
(...skipping 1725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) { | 1746 TEST_F(SyncableClientTagTest, TestClientTagIndexDuplicateServer) { |
1748 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true)); | 1747 EXPECT_TRUE(CreateWithDefaultTag(factory_.NewServerId(), true)); |
1749 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true)); | 1748 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), true)); |
1750 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false)); | 1749 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewServerId(), false)); |
1751 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false)); | 1750 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), false)); |
1752 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true)); | 1751 EXPECT_FALSE(CreateWithDefaultTag(factory_.NewLocalId(), true)); |
1753 } | 1752 } |
1754 | 1753 |
1755 } // namespace | 1754 } // namespace |
1756 } // namespace syncable | 1755 } // namespace syncable |
OLD | NEW |