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

Unified Diff: chrome/browser/chromeos/gdata/gdata_operation_registry_unittest.cc

Issue 10834027: Control the frequency of fileBrowserPrivate.onFileTransfersUpdated events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 1000msec 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_operation_registry.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/gdata/gdata_operation_registry_unittest.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_operation_registry_unittest.cc b/chrome/browser/chromeos/gdata/gdata_operation_registry_unittest.cc
index 4d56ec369e2b06ff76bbc1f46a0d5822cd0ac867..9d3fe6dc7f18ecd65fceb56e8017147d568f7727 100644
--- a/chrome/browser/chromeos/gdata/gdata_operation_registry_unittest.cc
+++ b/chrome/browser/chromeos/gdata/gdata_operation_registry_unittest.cc
@@ -128,6 +128,7 @@ class GDataOperationRegistryTest : public testing::Test {
TEST_F(GDataOperationRegistryTest, OneSuccess) {
TestObserver observer;
GDataOperationRegistry registry;
+ registry.DisableNotificationFrequencyControlForTest();
registry.AddObserver(&observer);
base::WeakPtr<MockOperation> op1 =
@@ -152,6 +153,7 @@ TEST_F(GDataOperationRegistryTest, OneSuccess) {
TEST_F(GDataOperationRegistryTest, OneCancel) {
TestObserver observer;
GDataOperationRegistry registry;
+ registry.DisableNotificationFrequencyControlForTest();
registry.AddObserver(&observer);
base::WeakPtr<MockOperation> op1 =
@@ -172,6 +174,7 @@ TEST_F(GDataOperationRegistryTest, OneCancel) {
TEST_F(GDataOperationRegistryTest, TwoSuccess) {
TestObserver observer;
GDataOperationRegistry registry;
+ registry.DisableNotificationFrequencyControlForTest();
registry.AddObserver(&observer);
base::WeakPtr<MockOperation> op1 =
@@ -204,6 +207,7 @@ TEST_F(GDataOperationRegistryTest, TwoSuccess) {
TEST_F(GDataOperationRegistryTest, ThreeCancel) {
TestObserver observer;
GDataOperationRegistry registry;
+ registry.DisableNotificationFrequencyControlForTest();
registry.AddObserver(&observer);
base::WeakPtr<MockOperation> op1 =
@@ -234,6 +238,7 @@ TEST_F(GDataOperationRegistryTest, ThreeCancel) {
TEST_F(GDataOperationRegistryTest, RestartOperation) {
TestObserver observer;
GDataOperationRegistry registry;
+ registry.DisableNotificationFrequencyControlForTest();
registry.AddObserver(&observer);
base::WeakPtr<MockOperation> op1 =
« no previous file with comments | « chrome/browser/chromeos/gdata/gdata_operation_registry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698