| OLD | NEW |
| 1 // Copyright (c) 2011 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 "chrome/browser/sync/engine/build_commit_command.h" | 5 #include "sync/engine/build_commit_command.h" |
| 6 #include "chrome/browser/sync/test/engine/syncer_command_test.h" | 6 #include "sync/test/engine/syncer_command_test.h" |
| 7 | 7 |
| 8 namespace browser_sync { | 8 namespace browser_sync { |
| 9 | 9 |
| 10 // A test fixture for tests exercising ClearDataCommandTest. | 10 // A test fixture for tests exercising ClearDataCommandTest. |
| 11 class BuildCommitCommandTest : public SyncerCommandTest { | 11 class BuildCommitCommandTest : public SyncerCommandTest { |
| 12 protected: | 12 protected: |
| 13 BuildCommitCommandTest() {} | 13 BuildCommitCommandTest() {} |
| 14 BuildCommitCommand command_; | 14 BuildCommitCommand command_; |
| 15 | 15 |
| 16 private: | 16 private: |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 command_.InterpolatePosition(0, BuildCommitCommand::GetGap())); | 89 command_.InterpolatePosition(0, BuildCommitCommand::GetGap())); |
| 90 EXPECT_EQ(BuildCommitCommand::GetGap() / 4, | 90 EXPECT_EQ(BuildCommitCommand::GetGap() / 4, |
| 91 command_.InterpolatePosition(0, BuildCommitCommand::GetGap()*2)); | 91 command_.InterpolatePosition(0, BuildCommitCommand::GetGap()*2)); |
| 92 EXPECT_EQ(BuildCommitCommand::GetGap(), | 92 EXPECT_EQ(BuildCommitCommand::GetGap(), |
| 93 command_.InterpolatePosition(0, BuildCommitCommand::GetGap()*2 + 1)); | 93 command_.InterpolatePosition(0, BuildCommitCommand::GetGap()*2 + 1)); |
| 94 } | 94 } |
| 95 | 95 |
| 96 } // namespace browser_sync | 96 } // namespace browser_sync |
| 97 | 97 |
| 98 | 98 |
| OLD | NEW |