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

Side by Side Diff: components/sync/model/sync_error_unittest.cc

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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
« no previous file with comments | « components/sync/model/sync_data.h ('k') | components/sync/model/sync_merge_result_unittest.cc » ('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) 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 "components/sync/model/sync_error.h" 5 #include "components/sync/model/sync_error.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 namespace { 12 namespace {
13 13
14 using std::string; 14 using std::string;
15 15
16 typedef testing::Test SyncErrorTest; 16 using SyncErrorTest = testing::Test;
17 17
18 TEST_F(SyncErrorTest, Unset) { 18 TEST_F(SyncErrorTest, Unset) {
19 SyncError error; 19 SyncError error;
20 EXPECT_FALSE(error.IsSet()); 20 EXPECT_FALSE(error.IsSet());
21 } 21 }
22 22
23 TEST_F(SyncErrorTest, Default) { 23 TEST_F(SyncErrorTest, Default) {
24 tracked_objects::Location location = FROM_HERE; 24 tracked_objects::Location location = FROM_HERE;
25 std::string msg = "test"; 25 std::string msg = "test";
26 ModelType type = PREFERENCES; 26 ModelType type = PREFERENCES;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 EXPECT_EQ(std::string(), error2.ToString()); 142 EXPECT_EQ(std::string(), error2.ToString());
143 143
144 error2 = error; 144 error2 = error;
145 EXPECT_TRUE(error2.IsSet()); 145 EXPECT_TRUE(error2.IsSet());
146 EXPECT_NE(string::npos, error.ToString().find(expected)); 146 EXPECT_NE(string::npos, error.ToString().find(expected));
147 } 147 }
148 148
149 } // namespace 149 } // namespace
150 150
151 } // namespace syncer 151 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/model/sync_data.h ('k') | components/sync/model/sync_merge_result_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698