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

Side by Side Diff: chrome/browser/plugin_service_unittest.cc

Issue 5996003: Revert "Revert 69755 - Move the NPAPI files from webkit/glue/plugins to webkit/plugins/npapi" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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
« no previous file with comments | « chrome/browser/plugin_service_browsertest.cc ('k') | chrome/browser/plugin_updater.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/plugin_service.h" 5 #include "chrome/browser/plugin_service.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "chrome/browser/browser_thread.h" 9 #include "chrome/browser/browser_thread.h"
10 #include "chrome/test/testing_profile.h" 10 #include "chrome/test/testing_profile.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "webkit/glue/plugins/plugin_list.h"
13 12
14 namespace { 13 namespace {
15 14
16 class PluginServiceTest : public testing::Test { 15 class PluginServiceTest : public testing::Test {
17 public: 16 public:
18 PluginServiceTest() 17 PluginServiceTest()
19 : message_loop_(MessageLoop::TYPE_IO), 18 : message_loop_(MessageLoop::TYPE_IO),
20 ui_thread_(BrowserThread::UI, &message_loop_), 19 ui_thread_(BrowserThread::UI, &message_loop_),
21 file_thread_(BrowserThread::FILE, &message_loop_), 20 file_thread_(BrowserThread::FILE, &message_loop_),
22 io_thread_(BrowserThread::IO, &message_loop_) {} 21 io_thread_(BrowserThread::IO, &message_loop_) {}
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 plugin_service_->SetChromePluginDataDir(plugin_data_dir); 53 plugin_service_->SetChromePluginDataDir(plugin_data_dir);
55 EXPECT_EQ(plugin_data_dir, plugin_service_->GetChromePluginDataDir()); 54 EXPECT_EQ(plugin_data_dir, plugin_service_->GetChromePluginDataDir());
56 } 55 }
57 56
58 TEST_F(PluginServiceTest, GetUILocale) { 57 TEST_F(PluginServiceTest, GetUILocale) {
59 // Check for a non-empty locale string. 58 // Check for a non-empty locale string.
60 EXPECT_NE("", plugin_service_->GetUILocale()); 59 EXPECT_NE("", plugin_service_->GetUILocale());
61 } 60 }
62 61
63 } // namespace 62 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/plugin_service_browsertest.cc ('k') | chrome/browser/plugin_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698