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

Side by Side Diff: chrome/browser/sync/api/sync_error_unittest.cc

Issue 7879006: Delete Tracked, and move Location to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 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
« no previous file with comments | « chrome/browser/sync/api/sync_error.cc ('k') | chrome/browser/sync/api/syncable_service_mock.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync/api/sync_error.cc ('k') | chrome/browser/sync/api/syncable_service_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698