OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/api/sync_error.h" | 5 #include "chrome/browser/sync/api/sync_error.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/tracked.h" | 9 #include "base/location.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 using std::string; | 12 using std::string; |
13 using syncable::ModelType; | 13 using syncable::ModelType; |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 typedef testing::Test SyncErrorTest; | 17 typedef testing::Test SyncErrorTest; |
18 | 18 |
19 TEST_F(SyncErrorTest, Unset) { | 19 TEST_F(SyncErrorTest, Unset) { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 EXPECT_TRUE(error2.IsSet()); | 105 EXPECT_TRUE(error2.IsSet()); |
106 EXPECT_EQ(error1.location().line_number(), error2.location().line_number()); | 106 EXPECT_EQ(error1.location().line_number(), error2.location().line_number()); |
107 EXPECT_EQ(error1.message(), error2.message()); | 107 EXPECT_EQ(error1.message(), error2.message()); |
108 EXPECT_EQ(error1.type(), error2.type()); | 108 EXPECT_EQ(error1.type(), error2.type()); |
109 | 109 |
110 error2 = SyncError(); | 110 error2 = SyncError(); |
111 EXPECT_FALSE(error2.IsSet()); | 111 EXPECT_FALSE(error2.IsSet()); |
112 } | 112 } |
113 | 113 |
114 } // namespace | 114 } // namespace |
OLD | NEW |