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

Side by Side Diff: sync/sessions/status_controller_unittest.cc

Issue 10795018: [Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiix indent Created 8 years, 5 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 | « sync/sessions/status_controller.cc ('k') | sync/sessions/sync_session.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 "sync/sessions/sync_session.h" 5 #include "sync/sessions/sync_session.h"
6 #include "sync/test/engine/test_id_factory.h" 6 #include "sync/test/engine/test_id_factory.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace syncer { 9 namespace syncer {
10 namespace sessions { 10 namespace sessions {
11 11
12 class StatusControllerTest : public testing::Test { 12 class StatusControllerTest : public testing::Test {
13 public: 13 public:
14 virtual void SetUp() { 14 virtual void SetUp() {
15 routes_[syncer::BOOKMARKS] = GROUP_UI; 15 routes_[BOOKMARKS] = GROUP_UI;
16 } 16 }
17 protected: 17 protected:
18 ModelSafeRoutingInfo routes_; 18 ModelSafeRoutingInfo routes_;
19 }; 19 };
20 20
21 // This test is useful, as simple as it sounds, due to the copy-paste prone 21 // This test is useful, as simple as it sounds, due to the copy-paste prone
22 // nature of status_controller.cc (we have had bugs in the past where a set_foo 22 // nature of status_controller.cc (we have had bugs in the past where a set_foo
23 // method was actually setting |bar_| instead!). 23 // method was actually setting |bar_| instead!).
24 TEST_F(StatusControllerTest, ReadYourWrites) { 24 TEST_F(StatusControllerTest, ReadYourWrites) {
25 StatusController status(routes_); 25 StatusController status(routes_);
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 status.GetUnrestrictedUpdateProgress(GROUP_UI); 122 status.GetUnrestrictedUpdateProgress(GROUP_UI);
123 EXPECT_FALSE(progress); 123 EXPECT_FALSE(progress);
124 status.model_neutral_state(); 124 status.model_neutral_state();
125 status.download_updates_succeeded(); 125 status.download_updates_succeeded();
126 status.ServerSaysNothingMoreToDownload(); 126 status.ServerSaysNothingMoreToDownload();
127 status.group_restriction(); 127 status.group_restriction();
128 } 128 }
129 129
130 } // namespace sessions 130 } // namespace sessions
131 } // namespace syncer 131 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/sessions/status_controller.cc ('k') | sync/sessions/sync_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698