| OLD | NEW |
| 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 "chrome/browser/chromeos/gdata/operation_registry.h" | 5 #include "chrome/browser/google_apis/operation_registry.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "content/public/test/test_browser_thread.h" | 10 #include "content/public/test/test_browser_thread.h" |
| 11 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 using testing::ElementsAre; | 14 using testing::ElementsAre; |
| 15 | 15 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 EXPECT_EQ(1U, registry.GetProgressStatusList().size()); | 249 EXPECT_EQ(1U, registry.GetProgressStatusList().size()); |
| 250 op1->NotifyStart(); // restart | 250 op1->NotifyStart(); // restart |
| 251 EXPECT_EQ(1U, registry.GetProgressStatusList().size()); | 251 EXPECT_EQ(1U, registry.GetProgressStatusList().size()); |
| 252 op1->NotifyProgress(0, 200); | 252 op1->NotifyProgress(0, 200); |
| 253 op1->NotifyFinish(OperationRegistry::OPERATION_COMPLETED); | 253 op1->NotifyFinish(OperationRegistry::OPERATION_COMPLETED); |
| 254 EXPECT_EQ(0U, registry.GetProgressStatusList().size()); | 254 EXPECT_EQ(0U, registry.GetProgressStatusList().size()); |
| 255 EXPECT_EQ(NULL, op1.get()); // deleted | 255 EXPECT_EQ(NULL, op1.get()); // deleted |
| 256 } | 256 } |
| 257 | 257 |
| 258 } // namespace gdata | 258 } // namespace gdata |
| OLD | NEW |