OLD | NEW |
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 // A test application for the RLZ library. | 5 // A test application for the RLZ library. |
6 // | 6 // |
7 // These tests should not be executed on the build server: | 7 // These tests should not be executed on the build server: |
8 // - They assert for the failed cases. | 8 // - They assert for the failed cases. |
9 // - They modify machine state (registry). | 9 // - They modify machine state (registry). |
10 // | 10 // |
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
815 TEST_F(ReadonlyRlzDirectoryTest, SupplementaryBrandingDoesNotCrash) { | 815 TEST_F(ReadonlyRlzDirectoryTest, SupplementaryBrandingDoesNotCrash) { |
816 // See the comment at the top of WriteFails. | 816 // See the comment at the top of WriteFails. |
817 if (!rlz_lib::SupplementaryBranding::GetBrand().empty()) | 817 if (!rlz_lib::SupplementaryBranding::GetBrand().empty()) |
818 return; | 818 return; |
819 | 819 |
820 rlz_lib::SupplementaryBranding branding("TEST"); | 820 rlz_lib::SupplementaryBranding branding("TEST"); |
821 EXPECT_FALSE(rlz_lib::RecordProductEvent(rlz_lib::TOOLBAR_NOTIFIER, | 821 EXPECT_FALSE(rlz_lib::RecordProductEvent(rlz_lib::TOOLBAR_NOTIFIER, |
822 rlz_lib::IE_DEFAULT_SEARCH, rlz_lib::INSTALL)); | 822 rlz_lib::IE_DEFAULT_SEARCH, rlz_lib::INSTALL)); |
823 } | 823 } |
824 #endif | 824 #endif |
OLD | NEW |