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/drive/drive_integration_service.h" | 5 #include "chrome/browser/chromeos/drive/drive_integration_service.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "chrome/browser/chromeos/drive/mock_file_system.h" | 8 #include "chrome/browser/chromeos/drive/mock_file_system.h" |
9 #include "chrome/browser/chromeos/drive/test_util.h" | 9 #include "chrome/browser/chromeos/drive/test_util.h" |
10 #include "chrome/browser/google_apis/dummy_drive_service.h" | 10 #include "chrome/browser/google_apis/dummy_drive_service.h" |
11 #include "chrome/test/base/testing_profile.h" | 11 #include "chrome/test/base/testing_profile.h" |
12 #include "content/public/test/test_browser_thread.h" | 12 #include "content/public/test/test_browser_thread.h" |
13 #include "testing/gmock/include/gmock/gmock.h" | |
14 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
15 | 14 |
16 namespace drive { | 15 namespace drive { |
17 | 16 |
18 class DriveIntegrationServiceTest : public testing::Test { | 17 class DriveIntegrationServiceTest : public testing::Test { |
19 public: | 18 public: |
20 DriveIntegrationServiceTest() : | 19 DriveIntegrationServiceTest() : |
21 ui_thread_(content::BrowserThread::UI, &message_loop_), | 20 ui_thread_(content::BrowserThread::UI, &message_loop_), |
22 file_system_(NULL), | 21 file_system_(NULL), |
23 integration_service_(NULL) {} | 22 integration_service_(NULL) {} |
(...skipping 25 matching lines...) Expand all Loading... |
49 DriveIntegrationService* integration_service_; | 48 DriveIntegrationService* integration_service_; |
50 }; | 49 }; |
51 | 50 |
52 TEST_F(DriveIntegrationServiceTest, InitializeAndShutdown) { | 51 TEST_F(DriveIntegrationServiceTest, InitializeAndShutdown) { |
53 integration_service_->Initialize(); | 52 integration_service_->Initialize(); |
54 google_apis::test_util::RunBlockingPoolTask(); | 53 google_apis::test_util::RunBlockingPoolTask(); |
55 integration_service_->Shutdown(); | 54 integration_service_->Shutdown(); |
56 } | 55 } |
57 | 56 |
58 } // namespace drive | 57 } // namespace drive |
OLD | NEW |