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

Side by Side Diff: chrome/browser/chromeos/gdata/gdata_operation_registry_unittest.cc

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
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 "chrome/browser/chromeos/gdata/gdata_operation_registry.h" 5 #include "chrome/browser/chromeos/gdata/gdata_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 "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 #include "content/test/test_browser_thread.h"
13 13
14 namespace gdata { 14 namespace gdata {
15 15
16 namespace { 16 namespace {
17 17
18 class MockOperation : public GDataOperationRegistry::Operation, 18 class MockOperation : public GDataOperationRegistry::Operation,
19 public base::SupportsWeakPtr<MockOperation> { 19 public base::SupportsWeakPtr<MockOperation> {
20 public: 20 public:
21 MockOperation(GDataOperationRegistry* registry, 21 MockOperation(GDataOperationRegistry* registry,
22 GDataOperationRegistry::OperationType type, 22 GDataOperationRegistry::OperationType type,
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 EXPECT_EQ(1U, registry.GetProgressStatusList().size()); 217 EXPECT_EQ(1U, registry.GetProgressStatusList().size());
218 op1->NotifyStart(); // restart 218 op1->NotifyStart(); // restart
219 EXPECT_EQ(1U, registry.GetProgressStatusList().size()); 219 EXPECT_EQ(1U, registry.GetProgressStatusList().size());
220 op1->NotifyProgress(0, 200); 220 op1->NotifyProgress(0, 200);
221 op1->NotifyFinish(GDataOperationRegistry::OPERATION_COMPLETED); 221 op1->NotifyFinish(GDataOperationRegistry::OPERATION_COMPLETED);
222 EXPECT_EQ(0U, registry.GetProgressStatusList().size()); 222 EXPECT_EQ(0U, registry.GetProgressStatusList().size());
223 EXPECT_EQ(NULL, op1.get()); // deleted 223 EXPECT_EQ(NULL, op1.get()); // deleted
224 } 224 }
225 225
226 } // namespace gdata 226 } // namespace gdata
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698