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

Side by Side Diff: chrome/browser/extensions/extension_updater_unittest.cc

Issue 155362: Temporarily disable unit tests with leaks until I can check in a fix for them... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/string_util.h" 6 #include "base/string_util.h"
7 #include "chrome/browser/extensions/extension_updater.h" 7 #include "chrome/browser/extensions/extension_updater.h"
8 #include "chrome/browser/extensions/extensions_service.h" 8 #include "chrome/browser/extensions/extensions_service.h"
9 #include "chrome/browser/net/test_url_fetcher_factory.h" 9 #include "chrome/browser/net/test_url_fetcher_factory.h"
10 #include "chrome/common/extensions/extension.h" 10 #include "chrome/common/extensions/extension.h"
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 EXPECT_TRUE(extension_data2 == file_contents); 407 EXPECT_TRUE(extension_data2 == file_contents);
408 service.FireInstallCallback(); 408 service.FireInstallCallback();
409 message_loop.RunAllPending(); 409 message_loop.RunAllPending();
410 } 410 }
411 }; 411 };
412 412
413 // Because we test some private methods of ExtensionUpdater, it's easer for the 413 // Because we test some private methods of ExtensionUpdater, it's easer for the
414 // actual test code to live in ExtenionUpdaterTest methods instead of TEST_F 414 // actual test code to live in ExtenionUpdaterTest methods instead of TEST_F
415 // subclasses where friendship with ExtenionUpdater is not inherited. 415 // subclasses where friendship with ExtenionUpdater is not inherited.
416 416
417 TEST(ExtensionUpdaterTest, TestXmlParsing) { 417 TEST(ExtensionUpdaterTest, DISABLED_TestXmlParsing) {
418 ExtensionUpdaterTest::TestXmlParsing(); 418 ExtensionUpdaterTest::TestXmlParsing();
419 } 419 }
420 420
421 TEST(ExtensionUpdaterTest, TestDetermineUpdates) { 421 TEST(ExtensionUpdaterTest, DISABLED_TestDetermineUpdates) {
422 ExtensionUpdaterTest::TestDetermineUpdates(); 422 ExtensionUpdaterTest::TestDetermineUpdates();
423 } 423 }
424 424
425 TEST(ExtensionUpdaterTest, TestMultipleManifestDownloading) { 425 TEST(ExtensionUpdaterTest, DISABLED_TestMultipleManifestDownloading) {
426 ExtensionUpdaterTest::TestMultipleManifestDownloading(); 426 ExtensionUpdaterTest::TestMultipleManifestDownloading();
427 } 427 }
428 428
429 TEST(ExtensionUpdaterTest, TestSingleExtensionDownloading) { 429 TEST(ExtensionUpdaterTest, DISABLED_TestSingleExtensionDownloading) {
430 ExtensionUpdaterTest::TestSingleExtensionDownloading(); 430 ExtensionUpdaterTest::TestSingleExtensionDownloading();
431 } 431 }
432 432
433 TEST(ExtensionUpdaterTest, TestMultipleExtensionDownloading) { 433 TEST(ExtensionUpdaterTest, DISABLED_TestMultipleExtensionDownloading) {
434 ExtensionUpdaterTest::TestMultipleExtensionDownloading(); 434 ExtensionUpdaterTest::TestMultipleExtensionDownloading();
435 } 435 }
436 436
437 437
438 // TODO(asargent) - (http://crbug.com/12780) add tests for: 438 // TODO(asargent) - (http://crbug.com/12780) add tests for:
439 // -prodversionmin (shouldn't update if browser version too old) 439 // -prodversionmin (shouldn't update if browser version too old)
440 // -manifests & updates arriving out of order / interleaved 440 // -manifests & updates arriving out of order / interleaved
441 // -Profile::GetDefaultRequestContext() returning null 441 // -Profile::GetDefaultRequestContext() returning null
442 // (should not crash, but just do check later) 442 // (should not crash, but just do check later)
443 // -malformed update url (empty, file://, has query, has a # fragment, etc.) 443 // -malformed update url (empty, file://, has query, has a # fragment, etc.)
444 // -An extension gets uninstalled while updates are in progress (so it doesn't 444 // -An extension gets uninstalled while updates are in progress (so it doesn't
445 // "come back from the dead") 445 // "come back from the dead")
446 // -An extension gets manually updated to v3 while we're downloading v2 (ie 446 // -An extension gets manually updated to v3 while we're downloading v2 (ie
447 // you don't get downgraded accidentally) 447 // you don't get downgraded accidentally)
448 // -An update manifest mentions multiple updates 448 // -An update manifest mentions multiple updates
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698