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

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

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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/plugins/plugin_prefs.h" 5 #include "chrome/browser/plugins/plugin_prefs.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/run_loop.h" 10 #include "base/run_loop.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "build/build_config.h"
12 #include "chrome/common/chrome_constants.h" 13 #include "chrome/common/chrome_constants.h"
13 #include "chrome/common/chrome_paths.h" 14 #include "chrome/common/chrome_paths.h"
14 #include "content/public/browser/plugin_service.h" 15 #include "content/public/browser/plugin_service.h"
15 #include "content/public/browser/render_process_host.h" 16 #include "content/public/browser/render_process_host.h"
16 #include "content/public/common/webplugininfo.h" 17 #include "content/public/common/webplugininfo.h"
17 #include "content/public/test/test_browser_thread_bundle.h" 18 #include "content/public/test/test_browser_thread_bundle.h"
18 #include "content/public/test/test_utils.h" 19 #include "content/public/test/test_utils.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
20 21
21 using base::ASCIIToUTF16; 22 using base::ASCIIToUTF16;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 EXPECT_FALSE(plugin_prefs_->IsPluginEnabled(component_updated_plugin_2)); 279 EXPECT_FALSE(plugin_prefs_->IsPluginEnabled(component_updated_plugin_2));
279 EXPECT_FALSE(plugin_prefs_->IsPluginEnabled(bundled_plugin)); 280 EXPECT_FALSE(plugin_prefs_->IsPluginEnabled(bundled_plugin));
280 281
281 EnablePluginSynchronously(true, bundled_plugin.path, true); 282 EnablePluginSynchronously(true, bundled_plugin.path, true);
282 EXPECT_FALSE(plugin_prefs_->IsPluginEnabled(component_updated_plugin_1)); 283 EXPECT_FALSE(plugin_prefs_->IsPluginEnabled(component_updated_plugin_1));
283 EXPECT_FALSE(plugin_prefs_->IsPluginEnabled(component_updated_plugin_2)); 284 EXPECT_FALSE(plugin_prefs_->IsPluginEnabled(component_updated_plugin_2));
284 EXPECT_TRUE(plugin_prefs_->IsPluginEnabled(bundled_plugin)); 285 EXPECT_TRUE(plugin_prefs_->IsPluginEnabled(bundled_plugin));
285 } 286 }
286 287
287 #endif 288 #endif
OLDNEW
« no previous file with comments | « chrome/browser/plugins/plugin_prefs.cc ('k') | chrome/browser/plugins/plugin_status_pref_setter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698