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

Side by Side Diff: chrome/browser/plugins/plugin_installer_unittest.cc

Issue 10933044: Move chrome/browser/plugin_* to chrome/browser/plugins/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@remove_plugin_group
Patch Set: . Created 8 years, 3 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 unified diff | Download patch
OLDNEW
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/plugin_installer.h" 5 #include "chrome/browser/plugins/plugin_installer.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "webkit/plugins/webplugininfo.h" 9 #include "webkit/plugins/webplugininfo.h"
10 10
11 using webkit::WebPluginInfo; 11 using webkit::WebPluginInfo;
12 12
13 namespace { 13 namespace {
14 14
15 PluginInstaller::SecurityStatus GetSecurityStatus(PluginInstaller* installer, 15 PluginInstaller::SecurityStatus GetSecurityStatus(PluginInstaller* installer,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 EXPECT_EQ(kOutOfDate, GetSecurityStatus(&installer, "foo")); 49 EXPECT_EQ(kOutOfDate, GetSecurityStatus(&installer, "foo"));
50 50
51 EXPECT_EQ(kOutOfDate, GetSecurityStatus(&installer, "0")); 51 EXPECT_EQ(kOutOfDate, GetSecurityStatus(&installer, "0"));
52 EXPECT_EQ(kOutOfDate, GetSecurityStatus(&installer, "1.2.3")); 52 EXPECT_EQ(kOutOfDate, GetSecurityStatus(&installer, "1.2.3"));
53 EXPECT_EQ(kRequiresAuthorization, GetSecurityStatus(&installer, "9.4.1")); 53 EXPECT_EQ(kRequiresAuthorization, GetSecurityStatus(&installer, "9.4.1"));
54 EXPECT_EQ(kRequiresAuthorization, GetSecurityStatus(&installer, "9.4.2")); 54 EXPECT_EQ(kRequiresAuthorization, GetSecurityStatus(&installer, "9.4.2"));
55 EXPECT_EQ(kOutOfDate, GetSecurityStatus(&installer, "10.2.0")); 55 EXPECT_EQ(kOutOfDate, GetSecurityStatus(&installer, "10.2.0"));
56 EXPECT_EQ(kUpToDate, GetSecurityStatus(&installer, "10.2.1")); 56 EXPECT_EQ(kUpToDate, GetSecurityStatus(&installer, "10.2.1"));
57 EXPECT_EQ(kUpToDate, GetSecurityStatus(&installer, "11")); 57 EXPECT_EQ(kUpToDate, GetSecurityStatus(&installer, "11"));
58 } 58 }
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_installer_observer.cc ('k') | chrome/browser/plugins/plugin_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698