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

Side by Side Diff: chrome/browser/google_apis/operation_registry_unittest.cc

Issue 10913184: Move basic operation components for Drive API to chrome/browser/google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 3 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/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
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
OLDNEW
« no previous file with comments | « chrome/browser/google_apis/operation_registry.cc ('k') | chrome/browser/google_apis/operations_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698