OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/plugin_service.h" | 5 #include "content/browser/plugin_service.h" |
6 | 6 |
7 #include "chrome/test/base/testing_browser_process_test.h" | |
8 #include "content/browser/browser_thread.h" | 7 #include "content/browser/browser_thread.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
10 | 9 |
11 namespace { | 10 namespace { |
12 | 11 |
13 class PluginServiceTest : public TestingBrowserProcessTest { | 12 class PluginServiceTest : public testing::Test { |
14 public: | 13 public: |
15 PluginServiceTest() | 14 PluginServiceTest() |
16 : message_loop_(MessageLoop::TYPE_IO), | 15 : message_loop_(MessageLoop::TYPE_IO), |
17 ui_thread_(BrowserThread::UI, &message_loop_), | 16 ui_thread_(BrowserThread::UI, &message_loop_), |
18 file_thread_(BrowserThread::FILE, &message_loop_), | 17 file_thread_(BrowserThread::FILE, &message_loop_), |
19 io_thread_(BrowserThread::IO, &message_loop_) {} | 18 io_thread_(BrowserThread::IO, &message_loop_) {} |
20 | 19 |
21 | 20 |
22 virtual void SetUp() { | 21 virtual void SetUp() { |
23 plugin_service_ = PluginService::GetInstance(); | 22 plugin_service_ = PluginService::GetInstance(); |
(...skipping 11 matching lines...) Expand all Loading... |
35 | 34 |
36 DISALLOW_COPY_AND_ASSIGN(PluginServiceTest); | 35 DISALLOW_COPY_AND_ASSIGN(PluginServiceTest); |
37 }; | 36 }; |
38 | 37 |
39 TEST_F(PluginServiceTest, GetUILocale) { | 38 TEST_F(PluginServiceTest, GetUILocale) { |
40 // Check for a non-empty locale string. | 39 // Check for a non-empty locale string. |
41 EXPECT_NE("", plugin_service_->GetUILocale()); | 40 EXPECT_NE("", plugin_service_->GetUILocale()); |
42 } | 41 } |
43 | 42 |
44 } // namespace | 43 } // namespace |
OLD | NEW |