| OLD | NEW | 
|   1 // Copyright 2014 The Chromium Authors. All rights reserved. |   1 // Copyright 2014 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 "storage/browser/test/mock_file_update_observer.h" | 
 |   6  | 
|   5 #include "base/threading/thread_task_runner_handle.h" |   7 #include "base/threading/thread_task_runner_handle.h" | 
|   6 #include "content/browser/fileapi/mock_file_update_observer.h" |  | 
|   7 #include "testing/gtest/include/gtest/gtest.h" |   8 #include "testing/gtest/include/gtest/gtest.h" | 
|   8  |   9  | 
|   9 namespace storage { |  10 namespace storage { | 
|  10  |  11  | 
|  11 MockFileUpdateObserver::MockFileUpdateObserver() : is_ready_(false) { |  12 MockFileUpdateObserver::MockFileUpdateObserver() : is_ready_(false) { | 
|  12 } |  13 } | 
|  13  |  14  | 
|  14 MockFileUpdateObserver::~MockFileUpdateObserver() { |  15 MockFileUpdateObserver::~MockFileUpdateObserver() { | 
|  15 } |  16 } | 
|  16  |  17  | 
| (...skipping 16 matching lines...) Expand all  Loading... | 
|  33   int end = end_update_count_[url]; |  34   int end = end_update_count_[url]; | 
|  34   EXPECT_LT(0, start - end); |  35   EXPECT_LT(0, start - end); | 
|  35 } |  36 } | 
|  36  |  37  | 
|  37 void MockFileUpdateObserver::OnEndUpdate(const FileSystemURL& url) { |  38 void MockFileUpdateObserver::OnEndUpdate(const FileSystemURL& url) { | 
|  38   if (is_ready_) |  39   if (is_ready_) | 
|  39     ++end_update_count_[url]; |  40     ++end_update_count_[url]; | 
|  40 } |  41 } | 
|  41  |  42  | 
|  42 }  // namespace storage |  43 }  // namespace storage | 
| OLD | NEW |